IUserView userView = SessionUtils.getUserView(request);  Integer degreeCurricularPlanID = new Integer(RequestUtils.getAndSetStringToRequest(request, "degreeCurricularPlanID"));  RequestUtils.getAndSetStringToRequest(request, "info"); RequestUtils.getAndSetStringToRequest(request, "inEnglish");  Object[] args = { degreeCurricularPlanID }; InfoDegreeInfo infoDegreeInfo = null; try { infoDegreeInfo = (InfoDegreeInfo) ServiceManagerServiceFactory.executeService(userView, "ReadDegreeInfoByDegreeCurricularPlanID", args); } catch (NotAuthorizedException e) { errors.add("notAuthorized", new ActionError("error.exception.notAuthorized2")); } catch (FenixServiceException e) { if (e.getMessage().equals("error.invalidExecutionDegree")) { errors.add("invalidExecutionDegree", new ActionError("error.invalidExecutionDegree")); } else if (e.getMessage().equals("error.impossibleDegreeInfo")) { errors.add("impossibleDegreeInfo", new ActionError("error.impossibleDegreeInfo")); } else { e.printStackTrace(); throw new FenixActionException(e); }
final Object[] args = { degreeCurricularPlan.getDegree() }; currentDegreeInfo = (DegreeInfo) ServiceManagerServiceFactory.executeService(userView, "CreateCurrentDegreeInfo", args);
    public ActionForward viewInformation(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException,            FenixFilterException {        ActionErrors errors = new ActionErrors();        IUserView userView = SessionUtils.getUserView(request);        Integer degreeCurricularPlanID = new Integer(RequestUtils.getAndSetStringToRequest(request,                "degreeCurricularPlanID"));        // it's necessary to find which information will be edited        RequestUtils.getAndSetStringToRequest(request, "info");        RequestUtils.getAndSetStringToRequest(request, "inEnglish");        Object[] args = { degreeCurricularPlanID };        InfoDegreeInfo infoDegreeInfo = null;        try {            infoDegreeInfo = (InfoDegreeInfo) ServiceManagerServiceFactory.executeService(userView,                    "ReadDegreeInfoByDegreeCurricularPlanID", args);        } catch (NotAuthorizedException e) {            errors.add("notAuthorized", new ActionError("error.exception.notAuthorized2"));        } catch (FenixServiceException e) {            if (e.getMessage().equals("error.invalidExecutionDegree")) {                errors.add("invalidExecutionDegree", new ActionError("error.invalidExecutionDegree"));            } else if (e.getMessage().equals("error.impossibleDegreeInfo")) {                errors.add("impossibleDegreeInfo", new ActionError("error.impossibleDegreeInfo"));            } else {                e.printStackTrace();                throw new FenixActionException(e);            }        }        if (!errors.isEmpty()) {            saveErrors(request, errors);            return (new ActionForward(mapping.getInput()));        }        DynaActionForm degreeInfoForm = (DynaActionForm) form;        fillForm(infoDegreeInfo, degreeInfoForm);        return mapping.findForward("viewInformation");    }