code: public NodeTypeIterator registerNodeTypes(InputStream xml, int alreadyExistsBehaviour, String contentType)
        throws RepositoryException
     {
        Collection<NodeTypeData> nts = typesManager.registerNodeTypes(xml, alreadyExistsBehaviour, contentType);
        EntityCollection types = new EntityCollection();
        for (NodeTypeData ntdata : nts)
        {
           types.add(new NodeTypeImpl(ntdata, typesManager, this, locationFactory, valueFactory, dataManager));
        }
        return types;
     }
docs: {@inheritDoc}
  
  @return