if (countEnrolments(DEGREE) == 1) {
if (countEnroledOrAprovedEnrolments(DEGREE) == 1) {
    public List<CurricularCourse2Enroll> apply(	    List<CurricularCourse2Enroll> curricularCoursesToBeEnrolledIn)	    throws EnrolmentRuleDomainException {	if(studentCurricularPlan.getBranch() != null && studentCurricularPlan.getSecundaryBranch() != null) {	    if (countEnrolments(DEGREE) == 1) {		removeCurricularCourses(curricularCoursesToBeEnrolledIn, Arrays.asList(MASTER_DEGREE));	    }	    if (countEnrolments(MASTER_DEGREE) >= 1) {		removeCurricularCourses(curricularCoursesToBeEnrolledIn, Arrays.asList(DEGREE));	    }	} else {	    removeCurricularCourses(curricularCoursesToBeEnrolledIn, Arrays.asList(DEGREE));	    removeCurricularCourses(curricularCoursesToBeEnrolledIn, Arrays.asList(MASTER_DEGREE));	}		return curricularCoursesToBeEnrolledIn;    }