catCodes.put(repoId.getAttributeValue("serverCode")+":"+repoId.getAttributeValue("code"), categName);
if (categoryRepository.findOneByNameIgnoreCase(categName) == null) {
MetadataCategory category = new MetadataCategory();
category.setName(categName);
categoryRepository.save(category);
addcateg = true;
}
}
}