code: public NodeTypeData getNodeType(InternalQName nodeTypeName) throws RepositoryException, NoSuchNodeTypeException
     {
        if (nodeTypeStorageRoot == null)
        {
           LOG.warn(" Storage not initialized");
           return null;
        }
        //Searching nodeType root
        ItemData nodeType = dataManager.getItemData(nodeTypeStorageRoot, new QPathEntry(nodeTypeName, 1), ItemType.NODE);
        if (nodeType == null)
           throw new NoSuchNodeTypeException("Node type definition " + nodeTypeName.getAsString() + "not found");
        if (!nodeType.isNode())
           throw new RepositoryException("Unexpected property found " + nodeType.getQPath().getAsString()
              + ". Should be node.");
  
        NodeData nodeTypeRoot = (NodeData)nodeType;
  
        if (!Constants.NT_NODETYPE.equals(nodeTypeRoot.getPrimaryTypeName()))
           throw new RepositoryException("Unexpected node type of NodeData found "
              + nodeTypeRoot.getPrimaryTypeName().getAsString() + ". Should be " + Constants.NT_NODETYPE.getAsString());
  
        return definitionAccessProvider.read(nodeTypeRoot);
     }
docs: {@inheritDoc}