System.out.println("Change Room, if...................");
	public ActionForward changeRoom(		ActionMapping mapping,		ActionForm form,		HttpServletRequest request,		HttpServletResponse response)		throws Exception {		System.out.println(			"################## Start of Change Room ###################");		DynaActionForm editarAulaForm = (DynaActionForm) form;		HttpSession sessao = request.getSession(false);		ContextUtils.setExecutionPeriodContext(request);		ContextUtils.setExecutionDegreeContext(request);		ContextUtils.setCurricularYearContext(request);		ContextUtils.setExecutionCourseContext(request);		if (sessao != null) {			IUserView userView =				(IUserView) sessao.getAttribute(SessionConstants.U_VIEW);			GestorServicos gestor = GestorServicos.manager();			RequestUtils.setLessonTypes(request);			Integer oldLessonOID =				new Integer(request.getParameter("infoAula_oid"));			Object argsLesson[] = { oldLessonOID };			InfoLesson iAulaAntiga = null;			iAulaAntiga =				(InfoLesson) gestor.executar(					userView,					"ReadLessonByOID",					argsLesson);			request.setAttribute("infoAula", iAulaAntiga);			DiaSemana weekDay =				new DiaSemana(					new Integer(						formDay2EnumerateDay(							(String) editarAulaForm.get("diaSemana"))));			request.setAttribute("weekDayString", weekDay.toString());			Calendar inicio = Calendar.getInstance();			inicio.set(				Calendar.HOUR_OF_DAY,				Integer.parseInt((String) editarAulaForm.get("horaInicio")));			inicio.set(				Calendar.MINUTE,				Integer.parseInt((String) editarAulaForm.get("minutosInicio")));			inicio.set(Calendar.SECOND, 0);			Calendar fim = Calendar.getInstance();			fim.set(				Calendar.HOUR_OF_DAY,				Integer.parseInt((String) editarAulaForm.get("horaFim")));			fim.set(				Calendar.MINUTE,				Integer.parseInt((String) editarAulaForm.get("minutosFim")));			fim.set(Calendar.SECOND, 0);			InfoRoom infoSala = new InfoRoom();			infoSala.setNome((String) editarAulaForm.get("nomeSala"));			ActionErrors actionErrors = checkTimeInterval(inicio, fim);			if (actionErrors.isEmpty()) {				InfoRoom infoRoom = new InfoRoom();				infoRoom.setCapacidadeNormal(new Integer(0));				infoRoom.setCapacidadeExame(new Integer(0));				InfoLesson infoLesson = new InfoLesson();				infoLesson.setDiaSemana(weekDay);				infoLesson.setInicio(inicio);				infoLesson.setFim(fim);				InfoExecutionPeriod infoExecutionPeriod =					(InfoExecutionPeriod) (request						.getAttribute(SessionConstants.EXECUTION_PERIOD));				Object args[] = { infoRoom, infoLesson, infoExecutionPeriod };				List emptyRoomsList =					(List) ServiceUtils.executeService(						SessionUtils.getUserView(request),						"ReadEmptyRoomsService",						args);				if (emptyRoomsList == null || emptyRoomsList.isEmpty()) {					actionErrors.add(						"search.empty.rooms.no.rooms",						new ActionError("search.empty.rooms.no.rooms"));					saveErrors(request, actionErrors);					return mapping.getInputForward();				}				Collections.sort(					emptyRoomsList,					new RoomAlphabeticComparator());				List listaSalas = new ArrayList();				listaSalas.add(					new LabelValueBean(infoSala.getNome(), infoSala.getNome()));				for (int i = 0; i < emptyRoomsList.size(); i++) {					InfoRoom elem = (InfoRoom) emptyRoomsList.get(i);					listaSalas.add(						new LabelValueBean(elem.getNome(), elem.getNome()));				}				emptyRoomsList.add(0, infoSala);				//sessao.removeAttribute("listaSalas");				//sessao.removeAttribute("listaInfoSalas");				request.setAttribute("listaSalas", listaSalas);				request.setAttribute("listaInfoSalas", emptyRoomsList);				System.out.println("Change Room, if...................");				String parameter =					request.getParameter(new String("operation"));				return mapping.findForward(parameter);			} else {				System.out.println("Change Room, else...................");				saveErrors(request, actionErrors);				return mapping.getInputForward();			}		} else			throw new Exception();	}