}
return refAttrs;
}
protected EprMetaData getObjectReferenceBinding(Definition wsdlDef, QName bindingName) {
EprMetaData info = new EprMetaData();
Binding wsdlBinding = wsdlDef.getBinding(bindingName);
// If the binding name does not have a namespace associated with it, then we'll need to
// get the list of all bindings and compare their local parts against our name.
if (wsdlBinding == null && bindingName.getNamespaceURI().equals("")
&& !bindingName.getLocalPart().equals("")) {
Collection<Binding> bindingsCollection = CastUtils.cast(wsdlDef.getBindings().values());
for (Binding b : bindingsCollection) {
if (b.getQName().getLocalPart().equals(bindingName.getLocalPart())) {
wsdlBinding = b;
break;
}
}
}
if (wsdlBinding != null) {
info.setBinding(wsdlBinding);
info.setCandidateWsdlDef(wsdlDef);
}
return info;
}