try {
if (specifications == null || specifications.size()==0)
return null;
// Classifications
TModelBag tbag = objectFactory.createTModelBag();
Iterator speciter = specifications.iterator();
while (speciter.hasNext()) {
RegistryObject registryobject = (RegistryObject) speciter.next();
if (registryobject instanceof Concept) {
Concept concept = (Concept) registryobject;
if (concept.getKey() != null) {
tbag.getTModelKey().add(concept.getKey().toString());
}
// if (registryobject instanceof SpecificationLink) {
// SpecificationLink specificationlink = (SpecificationLink) registryobject;
// if (specificationlink.getSpecificationObject() != null) {
// RegistryObject ro = specificationlink.getSpecificationObject();