try {
if (specifications == null || specifications.size()==0)
return null;
// Classifications
TModelBag tbag = TModelBag.Factory.newInstance();
Iterator speciter = specifications.iterator();
while (speciter.hasNext()) {
SpecificationLink specification = (SpecificationLink) speciter.next();
if (specification.getSpecificationObject() != null) {
RegistryObject ro = specification.getSpecificationObject();
if (ro.getKey() != null) {
Key key = ro.getKey();
tbag.addTModelKey(key.toString());
}
}
}
return tbag;
} catch (Exception ud) {