private Definition loadDefinition(WSDLManager wsdlManager, String url) throws WSDLException {
WSDLReader reader = wsdlManager.getWSDLFactory().newWSDLReader();
reader.setFeature("javax.wsdl.verbose", false);
reader.setFeature("javax.wsdl.importDocuments", true);
reader.setExtensionRegistry(wsdlManager.getExtensionRegistry());
CatalogWSDLLocator catLocator = new CatalogWSDLLocator(url, bus);
ResourceManagerWSDLLocator wsdlLocator = new ResourceManagerWSDLLocator(url, catLocator, bus);
InputSource src = wsdlLocator.getBaseInputSource();
Definition def;
if (src.getByteStream() != null || src.getCharacterStream() != null)
{