code: public NodeType getPrimaryNodeType() throws RepositoryException
     {
        checkValid();
  
        ExtendedNodeTypeManager nodeTypeManager = (ExtendedNodeTypeManager)session.getWorkspace().getNodeTypeManager();
        return nodeTypeManager.findNodeType(nodeData().getPrimaryTypeName());
     }
docs: {@inheritDoc}