request.setAttribute("newPaymentType", guide.getPaymentType().toString());
    public ActionForward chooseGuide(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        IUserView userView = SessionUtils.getUserView(request);        DynaActionForm guideForm = (DynaActionForm) actionForm;        Integer number = (Integer) guideForm.get("number");        Integer year = (Integer) guideForm.get("year");        Integer version = (Integer) guideForm.get("version");        // read guide        InfoGuide guide = null;        try {            if (version.intValue() == 0) {                Object[] args = { number, year };                List guidesList = (List) ServiceUtils.executeService(userView, "ChooseGuide", args);                guide = (InfoGuide) guidesList.get(0);            } else {                Object[] args = { number, year, version };                guide = (InfoGuide) ServiceUtils.executeService(userView, "ChooseGuide", args);            }        } catch (NonExistingServiceException e) {            // TODO Auto-generated catch block            e.printStackTrace();        } catch (FenixServiceException e) {            // TODO Auto-generated catch block            e.printStackTrace();        }        // read transactions        List paymentTransactions = new ArrayList();        for (Iterator iter = guide.getInfoGuideEntries().iterator(); iter.hasNext();) {            InfoGuideEntry guideEntry = (InfoGuideEntry) iter.next();            InfoPaymentTransaction paymentTransaction = null;            Object[] argsPaymentTransactions = { guideEntry.getIdInternal() };            try {                paymentTransaction = (InfoPaymentTransaction) ServiceUtils.executeService(userView,                        "ReadPaymentTransactionByGuideEntryID", argsPaymentTransactions);            } catch (FenixServiceException e1) {                // TODO Auto-generated catch block                e1.printStackTrace();            }            paymentTransactions.add(paymentTransaction);        }        List executionYears = null;        Object[] argsEmpty = {};        try {            executionYears = (List) ServiceUtils.executeService(userView, "ReadExecutionYears",                    argsEmpty);        } catch (FenixServiceException e1) {            // TODO Auto-generated catch block            e1.printStackTrace();        }        List degreeCurricularPlans = null;        try {            degreeCurricularPlans = (List) ServiceUtils.executeService(userView,                    "ReadDegreeCurricularPlansLabelValueBeanList", argsEmpty);        } catch (FenixServiceException e1) {            // TODO Auto-generated catch block            e1.printStackTrace();        }        guideForm.set("guideID", guide.getIdInternal());        guideForm.set("newExecutionYear", guide.getInfoExecutionDegree().getInfoExecutionYear()                .getYear());        guideForm.set("newDegreeCurricularPlanID", guide.getInfoExecutionDegree()                .getInfoDegreeCurricularPlan().getIdInternal());        request.setAttribute("paymentTransactions", paymentTransactions);        request.setAttribute("degreeCurricularPlans", degreeCurricularPlans);        request.setAttribute("executionYears", executionYears);        request.setAttribute("guide", guide);        request.setAttribute("documentTypes", DocumentType.toArrayListWithIntValues());        request.setAttribute("situationTypes", SituationOfGuide.toArrayList());        request.setAttribute("days", Data.getMonthDays());        request.setAttribute("months", Data.getMonths());        request.setAttribute("years", Data.getYears());        request.setAttribute("newPaymentType", guide.getPaymentType().toString());        request.setAttribute("paymentTypes", PaymentType.toArrayList());        return mapping.findForward("editGuide");    }