for (CurricularCourse course : allCurricularCourses) { if (!isApproved(course) && !studentCurricularPlan.isCurricularCourseEnrolledInExecutionPeriod(course, executionPeriod)) { if (!studentCurricularPlan.isCurricularCourseApproved(course) && isAnyScopeActive(course.getScopes())) { areaCourses.add(course); } } else { if(isAnyScopeActive(course.getScopes())) { optionalCourses++; }
for (CurricularCourse course : allCurricularCourses) { if (!isApproved(course) && !studentCurricularPlan.isCurricularCourseEnrolledInExecutionPeriod(course, executionPeriod)) { if (!studentCurricularPlan.isCurricularCourseApproved(course) && isAnyScopeActive(course.getScopes())) { areaCourses.add(course); } } else { if (isAnyScopeActive(course.getScopes())) { optionalCourses++;
	protected List<CurricularCourse> getTagus4And5Courses() {	    DegreeCurricularPlan tagusCurricularPlan = RootDomainObject.getInstance().readDegreeCurricularPlanByOID(89);	    Set<CurricularCourse> areaCourses = new HashSet<CurricularCourse>();	    Set<CurricularCourse> allCurricularCourses = new HashSet<CurricularCourse>();	    for (Branch branch : (List<Branch>) tagusCurricularPlan.getSpecializationAreas()) {		addOldCurricularCourses(allCurricularCourses, branch.getCurricularCourseGroups());	    }	    for (Branch branch : (List<Branch>) tagusCurricularPlan.getSecundaryAreas()) {		addOldCurricularCourses(allCurricularCourses, branch.getCurricularCourseGroups());	    }	    addOldCurricularCourses(allCurricularCourses, tagusCurricularPlan.getAllOptionalCurricularCourseGroups());	    for (CurricularCourse course : allCurricularCourses) {		if (!isApproved(course) && !studentCurricularPlan.isCurricularCourseEnrolledInExecutionPeriod(course, executionPeriod)) {		    if (!studentCurricularPlan.isCurricularCourseApproved(course) && isAnyScopeActive(course.getScopes())) {			areaCourses.add(course);		    }		} else {		    if(isAnyScopeActive(course.getScopes())) {			optionalCourses++;		    }		}	    }	    return new ArrayList<CurricularCourse>(areaCourses);	}