StudentCurricularPlan studentCurricularPlan = null; List<ExecutionDegree> result = null; try {  final Registration registration = getStudent(form); studentCurricularPlan = registration.getActiveOrConcludedStudentCurricularPlan();  result = (List<ExecutionDegree>) ServiceManagerServiceFactory.executeService( getUserView(request), "PrepareDegreesListByStudentNumber", new Object[] { registration, getDegreeType(form), executionPeriod });
StudentCurricularPlan studentCurricularPlan = null; List<ExecutionDegree> result = null; try {
	public ActionForward prepareEnrollmentCourses(ActionMapping mapping, ActionForm actionForm,			HttpServletRequest request, HttpServletResponse response) throws Exception {		final DynaActionForm form = (DynaActionForm) actionForm;		final ExecutionPeriod executionPeriod = getExecutionPeriod(form);		StudentCurricularPlan studentCurricularPlan = null;		List<ExecutionDegree> result = null;		try {						final Registration registration = getStudent(form);			studentCurricularPlan = registration.getActiveOrConcludedStudentCurricularPlan();						result = (List<ExecutionDegree>) ServiceManagerServiceFactory.executeService(					getUserView(request), "PrepareDegreesListByStudentNumber", new Object[] {							registration, getDegreeType(form), executionPeriod });		} catch (NotAuthorizedFilterException e) {			e.printStackTrace();			addActionMessage(request, "error.exception.notAuthorized2");			return mapping.getInputForward();		} catch (FenixServiceException e) {			addActionMessage(request, "error.impossible.operations");			return mapping.findForward("readCurricularCourseEnrollmentList");		}		prepareEnrollmentCoursesInformation(request, form, studentCurricularPlan, result);		// set attributes used by courseEnrollment context		request.setAttribute("executionPeriod", executionPeriod);		request.setAttribute("studentCurricularPlan", studentCurricularPlan);		return mapping.findForward("choosesForEnrollment");	}