// However, we are sticking to v2 for now, so categorybag doesn't
// exist under FindBinding. It is fine for now, since the incoming
// parameter value is always null anyways -- but this may change
// in the future.
FindBinding request = this.objectFactory.createFindBinding();
if (serviceKey != null) {
request.setServiceKey(serviceKey);
}
if (tModelBag != null) {
request.setTModelBag(tModelBag);
} else {
TModelBag tmb = this.objectFactory.createTModelBag();
request.setTModelBag(tmb);
}
if (findQualifiers != null) {
request.setFindQualifiers(findQualifiers);
}
request.setMaxRows(maxRows);
BindingDetail bd;
JAXBElement<?> o = execute(this.objectFactory.createFindBinding(request),
this.getInquiryURI());
bd = (BindingDetail) o.getValue();