ArrayList infoTurnos = (ArrayList) request.getAttribute("infoTurnosDeDisciplinaExecucao");
InfoExecutionCourse iDE = (InfoExecutionCourse) request.getAttribute( SessionConstants.EXECUTION_COURSE); Object argsLerTurnosDeDisciplinaExecucao[] = { iDE }; List infoTurnos = (List) gestor.executar( userView, "LerTurnosDeDisciplinaExecucao", argsLerTurnosDeDisciplinaExecucao); Collections.sort( infoTurnos, new InfoShiftComparatorByLessonType());
  public ActionForward execute(ActionMapping mapping, ActionForm form,                                HttpServletRequest request,                                HttpServletResponse response)      throws Exception {		    HttpSession sessao = request.getSession(false);    if (sessao != null) {		DynaActionForm manipularTurnosForm = (DynaActionForm) request.getAttribute("manipularTurnosForm");	    IUserView userView = (IUserView) sessao.getAttribute("UserView");        GestorServicos gestor = GestorServicos.manager();       		Integer indexTurno = (Integer) manipularTurnosForm.get("indexTurno");        ArrayList infoTurnos = (ArrayList) request.getAttribute("infoTurnosDeDisciplinaExecucao");               InfoShift infoTurno = (InfoShift) infoTurnos.get(indexTurno.intValue());               request.removeAttribute("infoTurno");        request.setAttribute("infoTurno", infoTurno);	    Object argsLerAlunosDeTurno[] = { new ShiftKey(infoTurno.getNome(), infoTurno.getInfoDisciplinaExecucao())};        ArrayList infoAlunosDeTurno = (ArrayList) gestor.executar(userView, "LerAlunosDeTurno", argsLerAlunosDeTurno);		request.removeAttribute("infoAlunosDeTurno");		if (!infoAlunosDeTurno.isEmpty())	        request.setAttribute("infoAlunosDeTurno", infoAlunosDeTurno);      return mapping.findForward("Sucesso");    } else      throw new Exception();  // nao ocorre... pedido passa pelo filtro Autorizacao   }