} catch (DomainException e) { addErrorMessage(domainResources.getString(e.getMessage()));
    public String createCurricularRule() {        try {            checkSelectedAttributes();            final Object[] args = { getDegreeModuleID(), CurricularRuleType.valueOf(getSelectedCurricularRuleType()), buildCurricularRuleParametersDTO() };            ServiceUtils.executeService(getUserView(), "CreateCurricularRule", args);            return "setCurricularRules";        } catch (FenixActionException e) {            addErrorMessage(bolonhaResources.getString(e.getMessage()));        } catch (FenixFilterException e) {            addErrorMessage(bolonhaResources.getString("error.notAuthorized"));        } catch (FenixServiceException e) {            addErrorMessage(bolonhaResources.getString(e.getMessage()));        } catch (NumberFormatException e) {            addErrorMessage(bolonhaResources.getString("invalid.minimum.maximum.values"));        }        return "";    }