System.out.println("Store Changes, if...................");
	public ActionForward storeChanges(		ActionMapping mapping,		ActionForm form,		HttpServletRequest request,		HttpServletResponse response)		throws Exception {		System.out.println(			"################## Start if Store Changes ###################");		System.out.println(			"Parameter InfoLesson OID= "				+ request.getParameter("infoAula_oid"));		System.out.println(			"Attribute InfoLesson OID= "				+ request.getAttribute("infoAula_oid"));		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 args[] = { oldLessonOID };			InfoLesson iAulaAntiga = null;			iAulaAntiga =				(InfoLesson) gestor.executar(userView, "ReadLessonByOID", args);			//InfoLesson iAulaAntiga =			//	(InfoLesson) request.getAttribute("infoAula");			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"));			RoomKey kSalaAntiga =				new RoomKey(iAulaAntiga.getInfoSala().getNome());			KeyLesson kAulaAntiga =				new KeyLesson(					iAulaAntiga.getDiaSemana(),					iAulaAntiga.getInicio(),					iAulaAntiga.getFim(),					kSalaAntiga);			InfoLesson iAula =				new InfoLesson(					new DiaSemana(						new Integer(							formDay2EnumerateDay(								(String) editarAulaForm.get("diaSemana")))),					inicio,					fim,					new TipoAula(						new Integer((String) editarAulaForm.get("tipoAula"))),					infoSala,					iAulaAntiga.getInfoDisciplinaExecucao());			//			InfoExecutionPeriod iExecutionPeriod =			//				(InfoExecutionPeriod) sessao.getAttribute(			//					SessionConstants.INFO_EXECUTION_PERIOD_KEY);			Object argsEditarAula[] =				{ kAulaAntiga, iAula /*, iExecutionPeriod*/			};			InfoLessonServiceResult result = null;			try {				result =					(InfoLessonServiceResult) gestor.executar(						userView,						"EditarAula",						argsEditarAula);			} catch (ExistingServiceException ex) {				throw new ExistingActionException("A aula", ex);			} catch (InterceptingServiceException ex) {				throw new InterceptingActionException(infoSala.getNome(), ex);			} catch (InvalidTimeIntervalServiceException ex) {				throw new InvalidTimeIntervalActionException(ex);			}			InfoExecutionCourse iDE =				(InfoExecutionCourse) request.getAttribute(					SessionConstants.EXECUTION_COURSE);			Object argsLerAulas[] = new Object[1];			argsLerAulas[0] = iDE;			ArrayList infoAulas =				(ArrayList) gestor.executar(					userView,					"LerAulasDeDisciplinaExecucao",					argsLerAulas);			//sessao.removeAttribute("listaAulas");			if (infoAulas != null && !infoAulas.isEmpty())				request.setAttribute("listaAulas", infoAulas);			//sessao.removeAttribute("indexAula");			ActionErrors actionErrors = getActionErrors(result, inicio, fim);			if (actionErrors.isEmpty()) {				//sessao.removeAttribute("infoAula");				System.out.println("Store Changes, if...................");				String parameter =					request.getParameter(new String("operation"));				return mapping.findForward(parameter);			} else {				System.out.println("Store Changes, else...................");				saveErrors(request, actionErrors);				return mapping.getInputForward();			}		} else			throw new Exception();	}