try {
URIResolver resolver = new URIResolver(null, ws.wsdlLocation(), getClass());
if (resolver.isResolved()) {
return resolver.getURI().toURL();
} else {
throw new WebServiceException("Could not find WSDL with URL " + ws.wsdlLocation());
}
} catch (IOException e) {
throw new ServiceConstructionException(
new Message("LOAD_WSDL_EXC", BUNDLE, ws.wsdlLocation()), e);
}