}
} catch (RegistryException e)
{
e.printStackTrace();
throw new JAXRException(e.getLocalizedMessage());
}
}
else if (LifeCycleManager.ORGANIZATION.equalsIgnoreCase(objectType))
{
ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
AuthToken auth = this.getAuthToken(con,registry);
try
{
RegisteredInfo ri = registry.getRegisteredInfo(auth.getAuthInfo());
BusinessInfos infos = null;
BusinessInfo[] biarr = null;
if (ri != null) infos = ri.getBusinessInfos();
if (infos != null) biarr = infos.getBusinessInfoArray();
for (int i = 0; i < biarr.length; i++) {
BusinessInfo info = biarr[i];
BusinessDetail detail = registry.getBusinessDetail(info.getBusinessKey());
col.add(registryService.getLifeCycleManagerImpl().createOrganization(detail));
}
} catch (RegistryException e) {
e.printStackTrace();
throw new JAXRException(e.getLocalizedMessage());
}
}
else if (LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType))
{
try {
TModelDetail tmodeldetail = registry.getTModelDetail(keys);
TModel[] tmarr = tmodeldetail.getTModelArray();
for (int i = 0; tmarr != null && i < tmarr.length; i++)
{
col.add(ScoutUddiJaxrHelper.getConcept(tmarr[i], lcm));
}
}
catch (RegistryException e)
{
e.printStackTrace();
throw new JAXRException(e.getLocalizedMessage());
}
}
else if (LifeCycleManager.SERVICE.equalsIgnoreCase(objectType)) {
try {
ServiceDetail serviceDetail = registry.getServiceDetail(keys);
if (serviceDetail != null) {
BusinessService[] a = serviceDetail.getBusinessServiceArray();
for (int i=0; a != null && i < a.length; i++) {
Service service = getServiceFromBusinessService(a[i], lcm);
col.add(service);
}
}
}
catch (RegistryException e) {
throw new JAXRException(e);
}
}
else {
throw new JAXRException("Unsupported type " + objectType +
" for getRegistryObjects() in Apache Scout");
}
return new BulkResponseImpl(col);