location = URI.createURI(location).resolve(baseResource.getURI()).toString();
}
URI locationURI = URI.createURI(location);
BPELResourceSetImpl hackedResourceSet = BPELUtils.slightlyHackedResourceSet ( imp );
Resource result = null;
try {
result = hackedResourceSet.getResource(locationURI, true, kind);
} catch (Throwable t) {
BPELPlugin.log("Resource " + locationURI + " cannot be read.",t,IStatus.WARNING);
return null;
}