} else {
for (final ILesson lesson : lessons) { infoLessons.add(InfoLessonWithInfoRoomAndInfoExecutionCourse .newInfoFromDomain(lesson)); }
    private ISiteComponent getInfoSiteShifts(InfoSiteShifts component, ISite site)            throws FenixServiceException {        List shiftsWithAssociatedClassesAndLessons = new ArrayList();        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            IExecutionCourse disciplinaExecucao = site.getExecutionCourse();            List shifts = sp.getITurnoPersistente().readByExecutionCourse(                    disciplinaExecucao.getIdInternal());            if (shifts == null || shifts.isEmpty()) {            } else {                for (int i = 0; i < shifts.size(); i++) {                    IShift shift = (IShift) shifts.get(i);                    InfoShiftWithAssociatedInfoClassesAndInfoLessons shiftWithAssociatedClassesAndLessons = new InfoShiftWithAssociatedInfoClassesAndInfoLessons(                            InfoShiftWithInfoExecutionCourseAndCollections.newInfoFromDomain(shift),                            null, null);                    List lessons = shift.getAssociatedLessons();                    List infoLessons = new ArrayList();                    List<ISchoolClass> classesShifts = shift.getAssociatedClasses();                    List infoClasses = new ArrayList();                    for (int j = 0; j < lessons.size(); j++)                        infoLessons.add(InfoLessonWithInfoRoomAndInfoExecutionCourse                                .newInfoFromDomain((ILesson) lessons.get(j)));                    shiftWithAssociatedClassesAndLessons.setInfoLessons(infoLessons);                    for (int j = 0; j < classesShifts.size(); j++)                        infoClasses.add(InfoClassWithInfoExecutionDegree                                .newInfoFromDomain((classesShifts.get(j))));                    shiftWithAssociatedClassesAndLessons.setInfoClasses(infoClasses);                    shiftsWithAssociatedClassesAndLessons.add(shiftWithAssociatedClassesAndLessons);                }            }        } catch (ExcepcaoPersistencia e) {            throw new FenixServiceException(e);        }        component.setShifts(shiftsWithAssociatedClassesAndLessons);        component.setInfoExecutionPeriodName(site.getExecutionCourse().getExecutionPeriod().getName());        component.setInfoExecutionYearName(site.getExecutionCourse().getExecutionPeriod()                .getExecutionYear().getYear());        return component;    }