HttpSession session = request.getSession(true); if (session != null) {  GestorServicos gestor = GestorServicos.manager();  InfoExecutionCourse executionCourse = new InfoExecutionCourse();  InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) session.getAttribute(SessionConstants.INFO_EXECUTION_DEGREE_KEY); InfoExecutionPeriod infoExecutionPeriod = (InfoExecutionPeriod) session.getAttribute(SessionConstants.INFO_EXECUTION_PERIOD_KEY); executionCourse.setInfoExecutionPeriod(infoExecutionPeriod); Integer curricularYear = (Integer) session.getAttribute(SessionConstants.CURRICULAR_YEAR_KEY); Object argsSelectExecutionCourse[] = { infoExecutionDegree, infoExecutionPeriod, curricularYear};  List infoExecutionCourses = (List) gestor.executar(null, "SelectExecutionCourse", argsSelectExecutionCourse);  request.setAttribute( "exeCourseList", infoExecutionCourses); return mapping.findForward("sucess");
List infoExecutionCourses; try { infoExecutionCourses = (List) gestor.executar( null, "SelectExecutionCourse", argsSelectExecutionCourse); } catch (FenixServiceException e) { throw new FenixActionException(e);
	public ActionForward execute(		ActionMapping mapping,		ActionForm form,		HttpServletRequest request,		HttpServletResponse response)		throws Exception {					HttpSession session = request.getSession(true);		if (session != null) {						GestorServicos gestor = GestorServicos.manager();			InfoExecutionCourse executionCourse = new InfoExecutionCourse();						InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) session.getAttribute(SessionConstants.INFO_EXECUTION_DEGREE_KEY);			InfoExecutionPeriod infoExecutionPeriod = (InfoExecutionPeriod) session.getAttribute(SessionConstants.INFO_EXECUTION_PERIOD_KEY);										executionCourse.setInfoExecutionPeriod(infoExecutionPeriod);			Integer curricularYear = (Integer) session.getAttribute(SessionConstants.CURRICULAR_YEAR_KEY);						Object argsSelectExecutionCourse[] = { infoExecutionDegree, infoExecutionPeriod, curricularYear};						List infoExecutionCourses =				(List) gestor.executar(null, "SelectExecutionCourse", argsSelectExecutionCourse);					request.setAttribute(				"exeCourseList",				infoExecutionCourses);			return mapping.findForward("sucess");		}		else {			throw new Exception();					// nao ocorre... pedido passa pelo filtro Autorizacao		}	}