if (slcol != null && !slcol.isEmpty()) {
Iterator<SpecificationLink> iter = slcol.iterator();
while (iter.hasNext()) {
SpecificationLink slink = (SpecificationLink) iter.next();
TModelInstanceInfo emptyTInfo = tid
.addNewTModelInstanceInfo();
RegistryObject specificationObject = slink.getSpecificationObject();
if (specificationObject.getKey() != null && specificationObject.getKey().getId() != null) {
emptyTInfo.setTModelKey(specificationObject.getKey().getId());
if (specificationObject.getDescription()!=null) {
for (LocalizedString locDesc : specificationObject.getDescription().getLocalizedStrings()) {
Description description = emptyTInfo.addNewDescription();
description.setStringValue(locDesc.getValue());
description.setLang(locDesc.getLocale().getLanguage());
}
}
Collection<ExternalLink> externalLinks = slink.getExternalLinks();
if (externalLinks!=null && externalLinks.size()>0) {
for (ExternalLink link : externalLinks) {
InstanceDetails ids = emptyTInfo.addNewInstanceDetails();
if (link.getDescription()!=null) {
Description description = ids.addNewDescription();
description.setStringValue(link.getDescription().getValue());
}
if (link.getExternalURI()!=null) {