public function getParent()
{
if ($this->getPath() === '/') {
return null;
}
$parentPath = $this->getParentPath();
$node = $this->context->getFirstLevelNodeCache()->getByPath($parentPath);
if ($node !== false) {
return $node;
}
$node = $this->nodeDataRepository->findOneByPathInContext($parentPath, $this->context);
$this->context->getFirstLevelNodeCache()->setByPath($parentPath, $node);
return $node;
}