localeServiceImpl.getByLocaleId(selectedDetailEntry
.getTargetLocale());
HGlossaryTerm targetTerm = entry.getGlossaryTerms().get(targetLocale);
if (targetTerm == null) {
throw new ActionException(
"Update failed for glossary term with source content: "
+ selectedDetailEntry.getSrcLocale()
+ " and target locale: "
+ selectedDetailEntry.getTargetLocale());
} else if (selectedDetailEntry.getTargetVersionNum().compareTo(
targetTerm.getVersionNum()) != 0) {
throw new ActionException("Update failed for glossary term "
+ selectedDetailEntry.getTarget() + " base versionNum "
+ selectedDetailEntry.getTargetVersionNum()
+ " does not match current versionNum "
+ targetTerm.getVersionNum());
} else {