ServiceManagerServiceFactory.executeService(userView, "EditProgram", args);
try { ServiceManagerServiceFactory.executeService(userView, "EditProgram", args); } catch (NotAuthorizedFilterException e) { ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.teacherNotResponsibleOrNotCoordinator")); saveErrors(request, messages); } catch (Exception e) { throw new FenixActionException(); }
    public ActionForward editProgram(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        final DynaActionForm dynaActionForm = (DynaActionForm) form;        final String curriculumIDString = request.getParameter("curriculumID");        final String program = dynaActionForm.getString("program");        final String programEn = dynaActionForm.getString("programEn");        final ExecutionCourse executionCourse = (ExecutionCourse) request                .getAttribute("executionCourse");        final Curriculum curriculum = findCurriculum(executionCourse, Integer                .valueOf(curriculumIDString));        final InfoCurriculum infoCurriculum = new InfoCurriculum();        infoCurriculum.setProgram(program);        infoCurriculum.setProgramEn(programEn);        final IUserView userView = getUserView(request);        final Object args[] = { executionCourse.getIdInternal(),                curriculum.getCurricularCourse().getIdInternal(), infoCurriculum,                userView.getUtilizador() };        ServiceManagerServiceFactory.executeService(userView, "EditProgram", args);        return mapping.findForward("program");    }