code: public NodeType[] getRequiredPrimaryTypes()
     {
        InternalQName[] requiredPrimaryTypes = nodeDefinitionData.getRequiredPrimaryTypes();
        NodeType[] result = new NodeType[requiredPrimaryTypes.length];
        for (int i = 0; i < requiredPrimaryTypes.length; i++)
        {
           NodeTypeData ntData = nodeTypeDataManager.getNodeType(requiredPrimaryTypes[i]);
           if (ntData == null)
           {
              LOG.error("NODE TYPE NOT FOUND " + requiredPrimaryTypes[i].getAsString());
           }
           else
              result[i] =
                 new NodeTypeImpl(ntData, nodeTypeDataManager, nodeTypeManager, locationFactory, valueFactory,
                    dataManager);
        }
        return result;
     }
docs: {@inheritDoc}