ResourceManager rr = getBus().getExtension(ResourceManager.class);
List<DOMSource> schemas = new ArrayList<DOMSource>();
for (String l : schemaLocations) {
URL url = rr.resolveResource(l, URL.class);
if (url == null) {
URIResolver res;
try {
res = new URIResolver(l);
} catch (IOException e) {
throw new ServiceConstructionException(new Message("INVALID_SCHEMA_URL", LOG, l), e);
}
if (!res.isResolved()) {
throw new ServiceConstructionException(new Message("INVALID_SCHEMA_URL", LOG, l));
}
url = res.getURL();
}
Document d;
try {
d = DOMUtils.readXml(url.openStream());
} catch (Exception e) {