code: public NodeImpl getParent() throws ItemNotFoundException, AccessDeniedException, RepositoryException
     {
  
        checkValid();
  
        if (isRoot())
        {
           throw new ItemNotFoundException("Root node does not have a parent");
        }
  
        return parent(true);
     }
docs: {@inheritDoc}