IEnrolment enrolment = (IEnrolment) iterator.next();
IEnrollment enrolment = (IEnrollment) iterator.next();
	public StudentEnrolmentContext apply(StudentEnrolmentContext studentEnrolmentContext)	{		// NAC stands for Number of Aumulated enrollments in one Curricular course.		// NC stands for Number of Curricular courses the student can be enrolled in.		int maxCourses =			studentEnrolmentContext.getStudentCurricularPlan().getStudent().getStudentKind().getMaxCoursesToEnrol().intValue();		int maxTotalNAC =			studentEnrolmentContext.getStudentCurricularPlan().getStudent().getStudentKind().getMaxNACToEnrol().intValue();		int totalNAC = 0;		int NC = 0;		Iterator iterator = studentEnrolmentContext.getStudentCurrentSemesterEnrollments().iterator();		while (iterator.hasNext())		{			IEnrolment enrolment = (IEnrolment) iterator.next();			ICurricularCourse curricularCourse = enrolment.getCurricularCourse();			if (studentEnrolmentContext.getCurricularCourseAcumulatedEnrolments(curricularCourse).intValue() > 1)			{				totalNAC += getMaxIncrementNac(curricularCourse).intValue();			} else			{				totalNAC += getMinIncrementNac(curricularCourse).intValue();			}			NC = NC + getWeigth(curricularCourse).intValue();		}		if (totalNAC >= maxTotalNAC || NC >= maxCourses)		{			studentEnrolmentContext.setFinalCurricularCoursesWhereStudentCanBeEnrolled(new ArrayList());		}		return studentEnrolmentContext;	}