code: public NodeType getDefaultPrimaryType()
     {
        if (nodeDefinitionData.getDefaultPrimaryType() == null)
           return null;
        return new NodeTypeImpl(nodeTypeDataManager.getNodeType(nodeDefinitionData.getDefaultPrimaryType()),
           nodeTypeDataManager, nodeTypeManager, locationFactory, valueFactory, dataManager);
     }
docs: {@inheritDoc}