public BusinessList findBusiness(Name[] nameArray,
DiscoveryURLs discoveryURLs, IdentifierBag identifierBag,
CategoryBag categoryBag, TModelBag tModelBag,
FindQualifiers findQualifiers, int maxRows)
throws RegistryException {
FindBusiness request = this.objectFactory.createFindBusiness();
if (nameArray != null) {
request.getName().addAll(Arrays.asList(nameArray));
}
if (discoveryURLs != null) {
request.setDiscoveryURLs(discoveryURLs);
}
if (identifierBag != null) {
request.setIdentifierBag(identifierBag);
}
if (categoryBag != null) {
request.setCategoryBag(categoryBag);
}
if (tModelBag != null) {
request.setTModelBag(tModelBag);
} else {
request.setTModelBag(this.objectFactory.createTModelBag());
}
if (findQualifiers != null) {
request.setFindQualifiers(findQualifiers);
}
request.setMaxRows(maxRows);
BusinessList bl;
JAXBElement<?> o = execute(this.objectFactory.createFindBusiness(request),
this.getInquiryURI());
bl = (BusinessList) o.getValue();