infoLesson.getInfoShiftList().add(infoShift); infoLessonList.add(infoLesson);
if (infoLesson != null) { infoLesson.getInfoShiftList().add(infoShift); infoLessonList.add(infoLesson); }
    private ISiteComponent getInfoSiteTimetable(InfoSiteTimetable component, ITurma domainClass)        throws FenixServiceException    {        ArrayList infoLessonList = null;        try        {            ISuportePersistente sp = SuportePersistenteOJB.getInstance();            ITurnoAulaPersistente shiftLessonDAO = sp.getITurnoAulaPersistente();            List shiftList = sp.getITurmaTurnoPersistente().readByClass(domainClass);            Iterator iterator = shiftList.iterator();            infoLessonList = new ArrayList();            while (iterator.hasNext())            {                ITurno shift = (ITurno) iterator.next();                InfoShift infoShift = (InfoShift) Cloner.get(shift);                List lessonList = shiftLessonDAO.readByShift(shift);                Iterator lessonIterator = lessonList.iterator();                while (lessonIterator.hasNext())                {                    IAula elem = (IAula) lessonIterator.next();                    InfoLesson infoLesson = Cloner.copyILesson2InfoLesson(elem);                    infoLesson.getInfoShiftList().add(infoShift);                    infoLessonList.add(infoLesson);                }            }        }        catch (ExcepcaoPersistencia ex)        {            throw new FenixServiceException(ex);        }        component.setLessons(infoLessonList);        return component;    }