Neos.Neos/Classes/EventLog/Domain/Model/NodeEvent.php
public function getDocumentNode()
    {
        try {
            $context = $this->contextFactory->create([
                'workspaceName' => $this->userService->getPersonalWorkspaceName(),
                'dimensions' => $this->dimension,
                'currentSite' => $this->getCurrentSite(),
                'invisibleContentShown' => true
            ]);
            return $context->getNodeByIdentifier($this->documentNodeIdentifier);
        } catch (EntityNotFoundException $e) {
            return null;
        }
    }
public function getDocumentNode()
    {
        try {
            $context = $this->contextFactory->create([
                'workspaceName' => $this->userService->getPersonalWorkspaceName(),
                'dimensions' => $this->dimension,
                'currentSite' => $this->getCurrentSite(),
                'invisibleContentShown' => true
            ]);
            return $context->getNodeByIdentifier($this->documentNodeIdentifier);
        } catch (EntityNotFoundException $e) {
            return null;
        }
    }
public function getDocumentNode ( ) { try { $ context = $ this -> contextFactory -> create ( [ 'workspaceName' => $ this -> userService -> getPersonalWorkspaceName ( ) , 'dimensions' => $ this -> dimension , 'currentSite' => $ this -> getCurrentSite ( ) , 'invisibleContentShown' => true ] ) ; return $ context -> getNodeByIdentifier ( $ this -> documentNodeIdentifier ) ; } catch ( EntityNotFoundException $ e ) { return null ; } }
Returns the closest document node, if it can be resolved.

It might happen that, if this event refers to a node contained in a site which is not available anymore,
Doctrine's proxy class of the Site domain model will fail with an EntityNotFoundException. We catch this
case and return NULL.

@return NodeInterface
Returns the closest document node if it can be resolved .