if (lessons != null) for (int i = 0; i < lessons.size(); i++) {  IAula lesson = (IAula) lessons.get(i); InfoLesson infoLesson = Cloner.copyILesson2InfoLesson(lesson); ITurno shift = lesson.getShift(); InfoShift infoShift = Cloner.copyShift2InfoShift(shift); infoLesson.setInfoShift(infoShift);
for (final Iterator iterator = lessons.iterator(); iterator.hasNext(); ) { final IAula lesson = (IAula) iterator.next(); final ITurno shift = lesson.getShift();
    public Object run(InfoStudent infoStudent) {        List infoLessons = new ArrayList();        try {            ISuportePersistente sp = SuportePersistenteOJB.getInstance();            List lessons =            //				sp.getITurnoAulaPersistente().readLessonsByStudent(            //					infoStudent.getInfoPerson().getUsername());            sp.getIAulaPersistente().readLessonsByStudent(infoStudent.getInfoPerson().getUsername());            if (lessons != null)                for (int i = 0; i < lessons.size(); i++) {                    //ITurnoAula lesson = (ITurnoAula) lessons.get(i);                    IAula lesson = (IAula) lessons.get(i);                    InfoLesson infoLesson = Cloner.copyILesson2InfoLesson(lesson);                    ITurno shift = lesson.getShift();                    InfoShift infoShift = Cloner.copyShift2InfoShift(shift);                    infoLesson.setInfoShift(infoShift);                    infoLessons.add(infoLesson);                }        } catch (ExcepcaoPersistencia ex) {            ex.printStackTrace();        }        return infoLessons;    }