}
List included = Schemas.getIncludes(schema);
for (Iterator i = included.iterator(); i.hasNext();) {
XSDInclude include = (XSDInclude) i.next();
file = null;
try {
file = findSchemaFile( include.getSchemaLocation() );
}
catch( Exception e ) {
logger.log( Level.SEVERE, "", e );
}
if ( file != null ) {
includes.add(file);
if( include.getSchema() != null ) {
namespaces.add(include.getSchema().getTargetNamespace());
}
else {
namespaces.add( schema.getTargetNamespace() );
}
}
else {
logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );
}
}
try {