/**
* Returns a node specified by the given relative path.
*
* @param string $path Path specifying the node, relative to this node
* @return NodeInterface The specified node or NULL if no such node exists
* @api
*/
public function getNode($path)
{
$absolutePath = $this->nodeService->normalizePath($path, $this->getPath());
$node = $this->context->getFirstLevelNodeCache()->getByPath($absolutePath);
if ($node !== false) {
return $node;
}
$node = $this->nodeDataRepository->findOneByPathInContext($absolutePath, $this->context);
$this->context->getFirstLevelNodeCache()->setByPath($absolutePath, $node);
return $node;
}