//populate includes
java.util.List includes = schema.getIncludes();
Iterator includesIter = includes.iterator();
while (includesIter.hasNext()) {
Include nextInclude = (Include) includesIter.next();
Source referencedSchema = getReferencedSchema(xsdSource, schema.getTargetNamespace(), nextInclude.getSchemaLocation(), schemaResolverWrapper);
if (referencedSchema != null) {
Schema includedSchema = getSchema(referencedSchema, schemaResolverWrapper);
nextInclude.setSchema(includedSchema);
}
}
return schema;
} catch (Exception e) {
//Error processing Import/Include