Schema schema = (Schema) unmarshaller.unmarshal(xsdSource);
//populate Imports
java.util.List imports = schema.getImports();
Iterator iter = imports.iterator();
while (iter.hasNext()) {
Import nextImport = (Import) iter.next();
Source referencedSchema = getReferencedSchema(xsdSource, nextImport.getNamespace(), nextImport.getSchemaLocation(), schemaResolverWrapper);
if (referencedSchema != null) {
Schema importedSchema = getSchema(referencedSchema, schemaResolverWrapper);
nextImport.setSchema(importedSchema);
}
}
//populate includes
java.util.List includes = schema.getIncludes();