IAttends attend = (Attends) iterStudent.next();
IAttends attend = (IAttends) iterStudent.next();
    private List returnStudentsFromStudentsArray(ISuportePersistente persistentSuport,            String[] students, Integer executionCourseId) throws FenixServiceException,            ExcepcaoPersistencia {        List studentsList = new ArrayList();        for (int i = 0; i < students.length; i++) {            if (students[i].equals("Todos os Alunos")) {                List attendList = persistentSuport.getIFrequentaPersistente().readByExecutionCourse(                        executionCourseId);                Iterator iterStudent = attendList.listIterator();                while (iterStudent.hasNext()) {                    IAttends attend = (Attends) iterStudent.next();                    InfoStudent infoStudent = InfoStudent.newInfoFromDomain(attend.getAluno());                    studentsList.add(infoStudent);                }                break;            }            InfoStudent infoStudent = InfoStudent.newInfoFromDomain((Student) persistentSuport                    .getIPersistentStudent().readByOID(Student.class, new Integer(students[i])));            if (!studentsList.contains(infoStudent))                studentsList.add(infoStudent);        }        return studentsList;    }