public ActionForward prepareViewRegistrationCurriculum(ActionMapping mapping, ActionForm actionForm,
HttpServletRequest request, HttpServletResponse response) {
RenderUtils.invalidateViewState();
final Registration registration = getAndSetRegistration(request);
final RegistrationCurriculumBean registrationCurriculumBean = new RegistrationCurriculumBean(registration);
request.setAttribute("registrationCurriculumBean", registrationCurriculumBean);
final String degreeCurricularPlanID = getStringFromRequest(request, "degreeCurricularPlanID");
if (degreeCurricularPlanID != null) {
request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);
}
if (!registrationCurriculumBean.hasCycleCurriculumGroup()) {
final List<CycleCurriculumGroup> internalCycleCurriculumGroups =
registration.getLastStudentCurricularPlan().getInternalCycleCurriculumGrops();
if (internalCycleCurriculumGroups.size() > 1) {
return mapping.findForward("chooseCycleForViewRegistrationCurriculum");
}