if (LifeCycleManager.CLASSIFICATION_SCHEME.equalsIgnoreCase(objectType))
{
try
{
TModelDetail tmodeldetail = registry.getTModelDetail(keys);
List<TModel> tmodelList = tmodeldetail.getTModel();
for (TModel tModel: tmodelList)
{
col.add(ScoutUddiJaxrHelper.getConcept(tModel, lcm));
}
} catch (RegistryException e)
{
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 = null;
try {
ri = registry.getRegisteredInfo(auth.getAuthInfo());
} catch (RegistryException rve) {
String username = getUsernameFromCredentials(con.getCredentials());
if (AuthTokenSingleton.getToken(username) != null) {
AuthTokenSingleton.deleteAuthToken(username);
}
auth = getAuthToken(con, registry);
ri = registry.getRegisteredInfo(auth.getAuthInfo());
}
if (ri != null) {
for (String key:keys) {
BusinessDetail detail = registry.getBusinessDetail(key);
col.add(((BusinessLifeCycleManagerImpl)registryService.getLifeCycleManagerImpl()).createOrganization(detail));
}
}
} catch (RegistryException e) {
throw new JAXRException(e.getLocalizedMessage());
}
}
else if (LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType))
{
try {
TModelDetail tmodeldetail = registry.getTModelDetail(keys);
List<TModel> tmodelList = tmodeldetail.getTModel();
for (TModel tmodel: tmodelList)
{
col.add(ScoutUddiJaxrHelper.getConcept(tmodel, lcm));
}