} else if ((compositeRuleType.equals(LogicOperators.AND) || compositeRuleType .equals(LogicOperators.OR)) && curricularRules.length < 2) {
} else if ((compositeRuleType == LogicOperators.AND || compositeRuleType == LogicOperators.OR) && curricularRules.length < 2) {
    private void checkCompositeRuleType(LogicOperators compositeRuleType, CurricularRule... curricularRules) throws DomainException {        if (compositeRuleType.equals(LogicOperators.NOT) && curricularRules.length > 1) {            throw new DomainException("incorrect.NOT.composite.rule.use");        } else if ((compositeRuleType.equals(LogicOperators.AND) || compositeRuleType                .equals(LogicOperators.OR))                && curricularRules.length < 2) {            throw new DomainException("incorrect.composite.rule.use");        } else if (!compositeRuleType.equals(LogicOperators.AND)                && !compositeRuleType.equals(LogicOperators.OR)                && !compositeRuleType.equals(LogicOperators.NOT)) {            throw new DomainException("unsupported.composite.rule");        }    }