if ( featureTypes == null || featureTypes.isEmpty() ) {
//grab all from catalog
featureTypes = catalog.getFeatureTypesByNamespace(ns);
}
SchemaIndexImpl index = new SchemaIndexImpl( new XSDSchema[]{ schema });
//all types in same namespace, write out the schema
for (FeatureTypeInfo featureType : featureTypes ) {
buildSchemaContent(featureType, schema, factory, index );
}
}