public function getParent() { $this->checkState(); if (is_null($this->parentPath)) { throw new ItemNotFoundException('The root node has no parent'); } return $this->objectManager->getNodeByPath($this->parentPath); }