WSDLFactory factory = WSDLFactory.newInstance();
WSDLReader reader = factory.newWSDLReader();
reader.setFeature("javax.wsdl.importDocuments", true);
reader.setFeature("javax.wsdl.verbose", false);
Definition def = reader.readWSDL(new CatalogWSDLLocator(wsdlUri, this.catalog));
updateDefinition("", def, docMap, base);
if (multiplePortInWSDLQuery) {
WSDLUtils.trimDefinition(def, servicePortNamesMap);
} else {
WSDLUtils.trimDefinition(def, this.service.getName(), this.service.getEndpointName());