@Transactional
public String update() {
persistPropertiesToDatabase(commonStringProperties);
persistPropertyToDatabase(fromEmailAddrProperty);
HApplicationConfiguration emailLogEventsValue =
applicationConfigurationDAO
.findByKey(HApplicationConfiguration.KEY_EMAIL_LOG_EVENTS);
if (emailLogEventsValue == null) {
emailLogEventsValue =
new HApplicationConfiguration(
HApplicationConfiguration.KEY_EMAIL_LOG_EVENTS,
Boolean.toString(enableLogEmail));
} else {
emailLogEventsValue.setValue(Boolean.toString(enableLogEmail));
}
applicationConfigurationDAO.makePersistent(emailLogEventsValue);
applicationConfigurationDAO.flush();
FacesMessages facesMessages = FacesMessages.instance();