addErrorMessage(domainResources.getString(e.getMessage()));
addErrorMessage(getFormatedMessage(domainResources, e.getKey(), e.getArgs()));
    public String deleteCurricularRule() {        try {            final Object[] args = { getCurricularRuleID() };            ServiceUtils.executeService(getUserView(), "DeleteCurricularRule", args);            addInfoMessage(bolonhaResources.getString("curricularRule.deleted"));            return "setCurricularRules";        } catch (FenixFilterException e) {            addErrorMessage(bolonhaResources.getString("error.notAuthorized"));        } catch (FenixServiceException e) {            addErrorMessage(bolonhaResources.getString(e.getMessage()));        } catch (DomainException e) {            addErrorMessage(domainResources.getString(e.getMessage()));        }        return "";    }