IEnrolment enrolment = (IEnrolment) iterator.next();
IEnrollment enrolment = (IEnrollment) iterator.next();
	public boolean checkEndOfScholarship(IStudentCurricularPlan studentCurricularPlan) throws ExcepcaoPersistencia{		double studentCredits = 0;				IDegreeCurricularPlan degreeCurricularPlan = super.getDegreeCurricularPlan();				List enrolments = SuportePersistenteOJB.getInstance().getIPersistentEnrolment().readAllByStudentCurricularPlan(studentCurricularPlan);				Iterator iterator = enrolments.iterator();				if (studentCurricularPlan.getGivenCredits() != null) {			studentCredits += studentCurricularPlan.getGivenCredits().doubleValue();		}		while(iterator.hasNext()){			IEnrolment enrolment = (IEnrolment) iterator.next();				if ((enrolment.getEnrolmentState().equals(EnrolmentState.APROVED))&&				(!(enrolment instanceof IEnrolmentInExtraCurricularCourse))){				studentCredits += enrolment.getCurricularCourse().getCredits().doubleValue(); 			}		}				return (studentCredits >= degreeCurricularPlan.getNeededCredits().doubleValue());	}