(getEndExecutionPeriodID() == null || getEndExecutionPeriodID().equals(NO_SELECTION_INTEGER)) ? null : getEndExecutionPeriodID() };
getFinalEndExecutionPeriodID() };
    public String createCurricularRule() {        try {            checkSelectedAttributes();            final Object[] args = {                     getDegreeModuleID(),                    CurricularRuleType.valueOf(getSelectedCurricularRuleType()),                    buildCurricularRuleParametersDTO(),                    getBeginExecutionPeriodID(),                    (getEndExecutionPeriodID() == null || getEndExecutionPeriodID().equals(NO_SELECTION_INTEGER)) ? null :                         getEndExecutionPeriodID() };            ServiceUtils.executeService(getUserView(), "CreateRule", 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"));        } catch (DomainException e) {            addErrorMessage(domainResources.getString(e.getMessage()));        }        return "";    }