public ActionForward viewHistoric(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixFilterException {  ActionErrors errors = new ActionErrors();  IUserView userView = SessionUtils.getUserView(request);  Integer degreeCurricularPlanID = new Integer(RequestUtils.getAndSetStringToRequest(request, "degreeCurricularPlanID"));
public ActionForward viewHistoric(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixFilterException {
    public ActionForward viewHistoric(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixFilterException {        ActionErrors errors = new ActionErrors();        IUserView userView = SessionUtils.getUserView(request);        Integer degreeCurricularPlanID = new Integer(RequestUtils.getAndSetStringToRequest(request,                "degreeCurricularPlanID"));        // read execution degree        Object[] args = { degreeCurricularPlanID };        InfoExecutionDegree infoExecutionDegree = null;        Integer degreeId = null;        try {            infoExecutionDegree = (InfoExecutionDegree) ServiceManagerServiceFactory.executeService(                    userView, "ReadActiveExecutionDegreebyDegreeCurricularPlanID", args);        } catch (FenixServiceException e) {            errors.add("impossibleHistoricDegreeSite", new ActionError(                    "error.coordinator.impossibleHistoricDegreeSite"));        }        if (infoExecutionDegree == null || infoExecutionDegree.getInfoDegreeCurricularPlan() == null                || infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree() == null) {            errors.add("impossibleHistoricDegreeSite", new ActionError(                    "error.coordinator.impossibleHistoricDegreeSite"));        }        if (!errors.isEmpty()) {            saveErrors(request, errors);            return (new ActionForward(mapping.getInput()));        }        // degreeId =        // infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree().getIdInternal();        degreeId = infoExecutionDegree.getInfoDegreeCurricularPlan().getIdInternal();        // read all execution degres this degree        Object[] args2 = { degreeId };        List infoExecutionDegrees = null;        try {            infoExecutionDegrees = (List) ServiceManagerServiceFactory.executeService(null,                    "ReadExecutionDegreesByDegreeCurricularPlanIDForCoordinator", args2);        } catch (FenixServiceException e) {            errors.add("impossibleDegreeSite", new ActionError("error.impossibleDegreeSite"));            saveErrors(request, errors);            return (new ActionForward(mapping.getInput()));        }        Collections.sort(infoExecutionDegrees, new BeanComparator("infoExecutionYear.beginDate"));        request.setAttribute("infoExecutionDegrees", infoExecutionDegrees);        return mapping.findForward("viewHistoric");    }