IEnrolment enrollment = (IEnrolment) curricularCoursesSortedByYear.get(iterator);
IEnrollment enrollment = (IEnrollment) curricularCoursesSortedByYear.get(iterator);
    private List filterCurricularCoursesThatExeceedAcumulatedValue(List curricularCoursesSortedByYear) {        int acumulatedNAC = 0;        int iterator = 0;        for (; iterator < curricularCoursesSortedByYear.size(); iterator++) {            IEnrolment enrollment = (IEnrolment) curricularCoursesSortedByYear.get(iterator);            ICurricularCourse curricularCourse = enrollment.getCurricularCourse();            acumulatedNAC += getIncrementNAC(curricularCourse).intValue();            if (acumulatedNAC >= availableNACToEnroll) {                curricularCoursesSortedByYear = getCurricularCoursesFromPreviousAndCurrentYear(curricularCoursesSortedByYear, iterator);                break;            }        }        return curricularCoursesSortedByYear;    }