if (curricularRule.getCurricularRuleType() == this.getCurricularRuleType()) {
if (curricularRule.getCurricularRuleType() == CurricularRuleType.EXCLUSIVENESS) {
    private void removeRuleFromCurrentExclusiveDegreeModule() {        final Iterator<CurricularRule> curricularRulesIterator = this.getExclusiveDegreeModule().getCurricularRulesIterator();        while (curricularRulesIterator.hasNext()) {            final CurricularRule curricularRule = curricularRulesIterator.next();            if (curricularRule.getCurricularRuleType() == this.getCurricularRuleType()) {                final Exclusiveness exclusiveness = (Exclusiveness) curricularRule;                if (exclusiveness.getExclusiveDegreeModule() == getDegreeModuleToApplyRule()) {                    curricularRulesIterator.remove();                    exclusiveness.removeExclusiveDegreeModule();                    exclusiveness.removeCommonParameters();                    exclusiveness.deleteDomainObject();                }            }        }    }