/**
  * Returns the absolute path of this node with additional context information (such as the workspace name).
  *
  * Example: /sites/mysitecom/homepage/about@user-admin
  *
  * @return string Node path with context information
  * @api
  */
 public function getContextPath()
 {
     return NodePaths::generateContextPath($this->getPath(), $this->context->getWorkspaceName(), $this->context->getDimensions());
 }
 /**
  *
  *
  * @param NodeInterface $node
  * @param Context $context
  * @param $recursive
  * @return void
  */
 public function beforeAdoptNode(NodeInterface $node, Context $context, $recursive)
 {
     if (!$this->eventEmittingService->isEnabled()) {
         return;
     }
     $this->initializeAccountIdentifier();
     if ($this->currentlyAdopting === 0) {
         /* @var $nodeEvent NodeEvent */
         $nodeEvent = $this->eventEmittingService->emit(self::NODE_ADOPT, array('targetWorkspace' => $context->getWorkspaceName(), 'targetDimensions' => $context->getTargetDimensions(), 'recursive' => $recursive), 'TYPO3\\Neos\\EventLog\\Domain\\Model\\NodeEvent');
         $nodeEvent->setNode($node);
         $this->eventEmittingService->pushContext();
     }
     $this->currentlyAdopting++;
 }