IRegistry registry = registryService.getRegistry();
try
{
FindQualifiers juddiFindQualifiers = mapFindQualifiers(findQualifiers);
Name[] nameArray = mapNamePatterns(namePatterns);
BusinessList result = registry.findBusiness(nameArray,
null,
ScoutJaxrUddiHelper.getIdentifierBagFromExternalIdentifiers(externalIdentifiers),
ScoutJaxrUddiHelper.getCategoryBagFromClassifications(classifications),
null,
juddiFindQualifiers,
registryService.getMaxRows());
BusinessInfo[] a = result.getBusinessInfos() != null ? result.getBusinessInfos().getBusinessInfoArray() : null;
LinkedHashSet<Organization> orgs = null;
int len = 0;
if (a != null)
{