private function addEntityToOutput(EntityRevision $entityRevision, $name)
 {
     $entityId = $entityRevision->getEntity()->getId();
     $revisionId = $entityRevision->getRevisionId();
     $this->resultBuilder->addBasicEntityInformation($entityId, $name);
     $this->resultBuilder->setValue($name, 'lastrevid', (int) $revisionId);
 }