IEnrolment enrolment = (IEnrolment) iter.next();
IEnrollment enrolment = (IEnrollment) iter.next();
    private Integer getApproved(List enrolments)    {        int approved = 0;        Iterator iter = enrolments.iterator();        while (iter.hasNext())        {            IEnrolment enrolment = (IEnrolment) iter.next();            EnrolmentState enrolmentState = enrolment.getEnrolmentState();            if (enrolmentState.equals(EnrolmentState.APROVED))            {                approved++;            }        }        return new Integer(approved);    }