TimeTable timeTable = new TimeTable(numberOfHours, numberOfDays, calendar, slotSizeMinutes,locale);
TimeTable timeTable = new TimeTable(numberOfHours, numberOfDays, calendar, slotSizeMinutes,locale, pageContext);
    private TimeTable generateTimeTable(List lessonList,Locale locale) {        Calendar calendar = Calendar.getInstance();        calendar.set(Calendar.HOUR_OF_DAY, this.startTimeTableHour.intValue());        calendar.set(Calendar.MINUTE, 0);        Integer numberOfDays = new Integer(6);        Integer numberOfHours = new Integer(                (endTimeTableHour.intValue() - startTimeTableHour.intValue())                        * (60 / slotSizeMinutes.intValue()));        TimeTable timeTable = new TimeTable(numberOfHours, numberOfDays, calendar, slotSizeMinutes,locale);        Iterator lessonIterator = lessonList.iterator();        while (lessonIterator.hasNext()) {//            InfoLesson infoLesson = (InfoLesson) lessonIterator.next();//            timeTable.addLesson(infoLesson);            InfoShowOccupation infoShowOccupation = (InfoShowOccupation) lessonIterator.next();            timeTable.addLesson(infoShowOccupation);        }        return timeTable;    }