if (null == manager) {
return null;
}
MetadataType metadata = ref.getMetadata();
String location = getWSDLLocation(ref);
if (null != location) {
//Pick up the first url to obtain the wsdl defintion
return manager.getDefinition(location);
}
for (Object obj : metadata.getAny()) {
if (obj instanceof Element) {
Element el = (Element)obj;
if ("http://schemas.xmlsoap.org/wsdl/".equals(el.getNamespaceURI())
&& "definitions".equals(el.getLocalName())) {
return manager.getDefinition(el);