IEnrolment enrolment = (IEnrolment) iterator.next();
IEnrollment enrolment = (IEnrollment) iterator.next();
	public boolean isCurricularCourseDone(ICurricularCourse curricularCourse)	{		Iterator iterator = this.getStudentApprovedEnrollments().iterator();		while (iterator.hasNext())		{			IEnrolment enrolment = (IEnrolment) iterator.next();			if(enrolment instanceof IEnrolmentInOptionalCurricularCourse)			{				if (((IEnrolmentInOptionalCurricularCourse) enrolment).getCurricularCourseForOption().equals(curricularCourse))				{					return true;				}			} else			{				if (enrolment.getCurricularCourse().equals(curricularCourse))				{					return true;				}			}		}		return false;	}