final DynaActionForm dynaActionForm) { final StudentCurricularPlan studentCurricularPlan; if (registration.getStudentCurricularPlansCount() > 1) { request.setAttribute("studentCurricularPlans", registration.getStudentCurricularPlans());  studentCurricularPlan = rootDomainObject .readStudentCurricularPlanByOID((Integer) dynaActionForm.get("scpId")); } else { studentCurricularPlan = registration.getActiveStudentCurricularPlan(); } return studentCurricularPlan;
final DynaActionForm actionForm) { final Registration registration = getRegistration(request, actionForm); if (registration.getStudentCurricularPlansCount() > 1) { request.setAttribute("studentCurricularPlans", registration.getStudentCurricularPlans());  return rootDomainObject.readStudentCurricularPlanByOID((Integer) actionForm.get("scpId")); } return registration.getActiveStudentCurricularPlan();
    private StudentCurricularPlan getAndSetStudentCurricularPlans(HttpServletRequest request,            final DynaActionForm dynaActionForm) {        final StudentCurricularPlan studentCurricularPlan;        if (registration.getStudentCurricularPlansCount() > 1) {            request.setAttribute("studentCurricularPlans", registration.getStudentCurricularPlans());                        studentCurricularPlan = rootDomainObject                    .readStudentCurricularPlanByOID((Integer) dynaActionForm.get("scpId"));        } else {            studentCurricularPlan = registration.getActiveStudentCurricularPlan();        }        return studentCurricularPlan;    }