// exist under FindBinding. It is fine for now, since the incoming
// parameter value is always null anyways -- but this may change
// in the future.
FindBindingDocument doc = FindBindingDocument.Factory.newInstance();
FindBinding request = doc.addNewFindBinding();
if (serviceKey != null) {
request.setServiceKey(serviceKey);
}
if (tModelBag != null) {
if (tModelBag.getTModelKeyArray().length == 0) {
tModelBag.setTModelKeyArray(new String[1]);
}
request.setTModelBag(tModelBag);
} else {
TModelBag tmb = TModelBag.Factory.newInstance();
tmb.setTModelKeyArray(new String[1]);
request.setTModelBag(tmb);
}
if (findQualifiers != null) {
request.setFindQualifiers(findQualifiers);
}
request.setMaxRows(maxRows);
BindingDetail bd;
XmlObject o = execute(doc, this.getInquiryURI()).changeType(
BindingDetailDocument.type);
bd = ((BindingDetailDocument) o).getBindingDetail();