}
@Override
protected void onSaveSubmit(AjaxRequestTarget target, Form<?> form) {
ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
Configuration c = cfgDao.forceGet(getModelObject().getConf_key());
if (c != null && c.isDeleted() && !c.getConfiguration_id().equals(getModelObject().getConfiguration_id())) {
getModelObject().setConfiguration_id(c.getConfiguration_id());
}
setModelObject(getBean(ConfigurationDao.class).update(getModelObject(), WebSession.getUserId()));
hideNewRecord();