IEnrolment enrolment = (IEnrolment) iterator.next();
IEnrollment enrolment = (IEnrollment) iterator.next();
    private List cleanList(List studentCurricularPlans, IUserView userView) throws FenixServiceException    {        List result = new ArrayList();        Integer numberAux = null;        BeanComparator numberComparator = new BeanComparator("studentCurricularPlan.student.number");        Collections.sort(studentCurricularPlans, numberComparator);        Iterator iterator = studentCurricularPlans.iterator();        while (iterator.hasNext())        {            IEnrolment enrolment = (IEnrolment) iterator.next();            if ((numberAux == null)                    || (numberAux.intValue() != enrolment.getStudentCurricularPlan().getStudent()                            .getNumber().intValue()))            {                numberAux = enrolment.getStudentCurricularPlan().getStudent().getNumber();                Object args[] =                { enrolment};                InfoEnrolmentEvaluation infoEnrolmentEvaluation = (InfoEnrolmentEvaluation) ServiceManagerServiceFactory                        .executeService(userView, "GetEnrolmentGrade", args);                InfoEnrolment infoEnrolment = Cloner.copyIEnrolment2InfoEnrolment(enrolment);                infoEnrolment.setInfoEnrolmentEvaluation(infoEnrolmentEvaluation);                result.add(infoEnrolment);            }        }        return result;    }