key = entry.getKey();
key = key.toLowerCase().trim();
try {
keyword = keywordsMap.get(key);
if (keyword == null) {
throw new InstanceNotFoundException("", null);
}
// If the keyword already exists is modified
KeywordWeight kw = keywordWeightsMap
.get(keyword.getKeywordId());
if (kw == null) {
throw new InstanceNotFoundException("", null);
}
if (kw.getUsers().contains(user)) {
if (!user.admin()) {
throw new DuplicateInstanceException(key,