public String getMessage(String key, String defaultValue) {
return i18NSource.getMessage(key, defaultValue);
}
private void prepareAndSaveNewItem(BeanItem<DBDictionaryItemWrapper> item, ProcessDBDictionary dictionary) {
DBDictionaryItemWrapper bean = item.getBean();
ProcessDictionaryItem lookedUpItem = dictionary.lookup(bean.getKey());
if (lookedUpItem != null) {
validationNotification(application, i18NSource, getMessage("validate.dictentry.exists"));
}
else {
bean.getWrappedObject().setDictionary(dictionary);
dictionary.addItem(bean.getWrappedObject());
dictItemContainers.get(dictionary).addBean(bean);
handleItemSave(bean);
builder.closeDetailsWindow();
}
}