request.setAttribute("executionYears", registration.getEnrolmentsExecutionYears()); } } request.setAttribute("documentRequestCreateBean", new DocumentRequestCreator( registration)); return mapping.findForward("createDocumentRequests");
if (registration.getStudentCurricularPlansCount() > 1) { request.setAttribute("studentCurricularPlans", registration .getStudentCurricularPlans()); }  request.setAttribute("executionYears", registration.getEnrolmentsExecutionYears()); } }  return mapping.findForward("createDocumentRequests");
    public ActionForward prepare(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) {        registration = SessionUtils.getUserView(request).getPerson().getStudentByUsername();        final DocumentRequestCreateBean documentRequestCreateBean = new DocumentRequestCreateBean(registration);                if (!registration.getPayedTuition()) {            addActionMessage(request, "error.message.tuitionNotPayed");        } else {            if (!registration.hasAnyStudentCurricularPlans()) {                addActionMessage(request, "error.student.curricularPlan.nonExistent");            } else {                request.setAttribute("registration", registration);                if (registration.getStudentCurricularPlansCount() > 1) {                    request.setAttribute("studentCurricularPlans", registration                            .getStudentCurricularPlans());                }                //getAndSetExecutionYears(request, registration.getActiveStudentCurricularPlan());                request.setAttribute("executionYears", registration.getEnrolmentsExecutionYears());            }        }        request.setAttribute("documentRequestCreateBean", new DocumentRequestCreator(                registration));        return mapping.findForward("createDocumentRequests");    }