IEnrolment enrolment = (IEnrolment) iterator.next();
IEnrollment enrolment = (IEnrollment) iterator.next();
	public Date dateOfEndOfScholarship(IStudentCurricularPlan studentCurricularPlan) throws ExcepcaoPersistencia{				Calendar date = null;		//		float studentCredits = 0;//		//		IDegreeCurricularPlan degreeCurricularPlan = super.getDegreeCurricularPlan();				List enrolments = SuportePersistenteOJB.getInstance().getIPersistentEnrolment().readAllByStudentCurricularPlan(studentCurricularPlan);				Iterator iterator = enrolments.iterator();				while(iterator.hasNext()){			IEnrolment enrolment = (IEnrolment) iterator.next();			if (enrolment.getEnrolmentState().equals(EnrolmentState.APROVED)){				Iterator evaluations = enrolment.getEvaluations().iterator();				while(evaluations.hasNext()){					IEnrolmentEvaluation evaluation = (IEnrolmentEvaluation) evaluations.next(); 					if (evaluation.getExamDate() == null){						continue;					}										if (date == null){						date = Calendar.getInstance();						date.setTime(evaluation.getExamDate());						continue;					}										Calendar examDate = Calendar.getInstance();					examDate.setTime(evaluation.getExamDate());					if (examDate.get(Calendar.YEAR) > date.get(Calendar.YEAR)){						date.setTime(evaluation.getExamDate());						continue;					}					if ((examDate.get(Calendar.MONTH) > date.get(Calendar.MONTH )) &&						(examDate.get(Calendar.YEAR) > date.get(Calendar.YEAR ))){							date.setTime(evaluation.getExamDate());							continue;					}					if ((examDate.get(Calendar.MONTH) > date.get(Calendar.MONTH )) &&						(examDate.get(Calendar.YEAR) == date.get(Calendar.YEAR ))){							date.setTime(evaluation.getExamDate());							continue;					}										if ((examDate.get(Calendar.DAY_OF_MONTH) > date.get(Calendar.DAY_OF_MONTH )) &&						(examDate.get(Calendar.MONTH) > date.get(Calendar.MONTH )) &&						(examDate.get(Calendar.YEAR) > date.get(Calendar.YEAR ))){							date.setTime(evaluation.getExamDate());							continue;					}					if ((examDate.get(Calendar.DAY_OF_MONTH) > date.get(Calendar.DAY_OF_MONTH )) &&						(examDate.get(Calendar.MONTH) == date.get(Calendar.MONTH )) &&						(examDate.get(Calendar.YEAR) == date.get(Calendar.YEAR ))){							date.setTime(evaluation.getExamDate());							continue;					}									}			}		}		return date.getTime();	}