public void addWsdlImport(URI from, URI wsdlImport, SourceLocation sloc) {
Definition4BPEL def;
try {
WSDLReader r = _wsdlFactory.newWSDLReader();
WSDLLocatorImpl locator = new WSDLLocatorImpl(_resourceFinder, from.resolve(wsdlImport));
def = (Definition4BPEL) r.readWSDL(locator);
} catch (WSDLException e) {
recoveredFromError(sloc, new CompilationException(__cmsgs.errWsdlParseError(e
.getFaultCode(), e.getLocation(), e.getMessage())));
throw new CompilationException(__cmsgs.errWsdlImportFailed(wsdlImport.toASCIIString(), e.getFaultCode())