}
private void onFormSubmit() {
try {
DataAccessRuleDAO dao = DataAccessRuleDAO.get();
CatalogMode newMode = dao.getByAlias(catalogMode.getValue());
dao.setCatalogMode(newMode);
dao.storeRules();
setResponsePage(CatalogModePage.class);
} catch (Exception e) {
LOGGER.log(Level.SEVERE, "Error occurred while saving user", e);