xsdMainResource.setURI(uri);
// schema building has effects on referenced schemas, it will alter them -> we need
// to synchronize this call so that only one of these operations is active at any time
synchronized(Schemas.class) {
xsdMainResource.load(resourceSet.getLoadOptions());
return xsdMainResource.getSchema();
}
}
/**