institutionWorkingTimeForm.set("institutionWorkTimeID", institutionWorkTime.getIdInternal());
    protected void prepareToEdit(InstitutionWorkTime institutionWorkTime, Teacher teacher,            ExecutionPeriod executionPeriod, HttpServletRequest request,            DynaActionForm institutionWorkingTimeForm) {        if (institutionWorkTime == null) {            request.setAttribute("toCreate", "toCreate");        } else {            Date startTime = institutionWorkTime.getStartTime();            Date endTime = institutionWorkTime.getEndTime();            Calendar time = Calendar.getInstance();            time.setTime(startTime);            institutionWorkingTimeForm.set("startTimeHour", String.valueOf(time                    .get(Calendar.HOUR_OF_DAY)));            institutionWorkingTimeForm                    .set("startTimeMinutes", String.valueOf(time.get(Calendar.MINUTE)));            time.setTime(endTime);            institutionWorkingTimeForm                    .set("endTimeHour", String.valueOf(time.get(Calendar.HOUR_OF_DAY)));            institutionWorkingTimeForm.set("endTimeMinutes", String.valueOf(time.get(Calendar.MINUTE)));            institutionWorkingTimeForm.set("weekDay", institutionWorkTime.getWeekDay().getName());        }        institutionWorkingTimeForm.set("teacherNumber", String.valueOf(teacher.getTeacherNumber()));        request.setAttribute("teacher", teacher);        request.setAttribute("executionPeriod", executionPeriod);    }