code: public boolean hasNodeType(InternalQName nodeTypeName) throws RepositoryException
     {
        if (!validatate())
        {
           return false;
        }
  
        NodeData nodeTypeData =
           (NodeData)dataManager.getItemData(nodeTypeStorageRoot, new QPathEntry(nodeTypeName, 1), ItemType.NODE);
  
        return nodeTypeData != null;
     }
docs: {@inheritDoc}