I18nText loaded = getDao().find(I18nText.class, txt.getId());
if (loaded != null) {
List<LocalizedValue> oldData = loaded.getData();
List<LocalizedValue> newData = txt.getData();
for (int index = 0; index < oldData.size(); index++) {
LocalizedValue localized = oldData.get(index);
localized.setTranslation(newData.get(index).getTranslation());
}
return loaded;
}
}
return txt;