Iterator it = attendList.iterator(); while (it.hasNext()) { IFrequenta attend = (Frequenta) it.next(); IExecutionCourse executionCourse = attend.getDisciplinaExecucao(); if (persistentSuport.getIPersistentStudentTestQuestion() .countStudentTestByStudentAndExecutionCourse(executionCourse, student) != 0) result.add(Cloner.get(executionCourse));
final List infoExecutionCourses = new ArrayList(); for (final Iterator iterator = attends.iterator(); iterator.hasNext(); ) { final IFrequenta attend = (IFrequenta) iterator.next(); final IExecutionCourse executionCourse = attend.getDisciplinaExecucao();  final int count = persistentStudentTestQuestion.countStudentTestByStudentAndExecutionCourse(executionCourse, student);  if (count != 0) { final InfoExecutionCourse infoExecutionCourse = InfoExecutionCourse.newInfoFromDomain(executionCourse); infoExecutionCourses.add(infoExecutionCourse);
    public Object run(String userName) throws FenixServiceException {        List result = new ArrayList();        try {            ISuportePersistente persistentSuport = SuportePersistenteOJB.getInstance();            IStudent student = persistentSuport.getIPersistentStudent().readByUsername(userName);            List attendList = persistentSuport.getIFrequentaPersistente().readByStudentNumber(                    student.getNumber());            Iterator it = attendList.iterator();            while (it.hasNext()) {                IFrequenta attend = (Frequenta) it.next();                IExecutionCourse executionCourse = attend.getDisciplinaExecucao();                if (persistentSuport.getIPersistentStudentTestQuestion()                        .countStudentTestByStudentAndExecutionCourse(executionCourse, student) != 0)                    result.add(Cloner.get(executionCourse));            }        } catch (ExcepcaoPersistencia e) {            throw new FenixServiceException(e);        }        return result;    }