new BeanComparator("shift.tipo.tipo"));
new BeanComparator("shift.tipo"));
    public ActionForward showForm(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        DynaActionForm teacherExecutionCourseShiftProfessorshipForm = (DynaActionForm) form;        IUserView userView = SessionUtils.getUserView(request);        Integer teacherId = (Integer) teacherExecutionCourseShiftProfessorshipForm.get("teacherId");        Integer executionCourseId = (Integer) teacherExecutionCourseShiftProfessorshipForm                .get("executionCourseId");        TeacherExecutionCourseProfessorshipShiftsDTO teacherExecutionCourseProfessorshipShiftsDTO = (TeacherExecutionCourseProfessorshipShiftsDTO) ServiceUtils                .executeService(userView, "ReadTeacherExecutionCourseProfessorshipShifts", new Object[] {                        new InfoTeacher(teacherId), new InfoExecutionCourse(executionCourseId) });        Collections.sort(teacherExecutionCourseProfessorshipShiftsDTO.getInfoShiftPercentageList(),                new BeanComparator("shift.tipo.tipo"));        if (!hasErrors(request)) {            populateForm(teacherExecutionCourseProfessorshipShiftsDTO,                    teacherExecutionCourseShiftProfessorshipForm, request);        }        request.setAttribute("teacherExecutionCourseProfessorshipShifts",                teacherExecutionCourseProfessorshipShiftsDTO);        return mapping.findForward("show-form");    }