if (curricularPlanID == null) { curricularPlanID = (Integer) request.getAttribute("curricularPlanID");
request.setAttribute("curricularPlanID", curricularPlanID); request.setAttribute(SessionConstants.EXECUTION_DEGREE, executionDegreeId);
	public ActionForward prepare(ActionMapping mapping, ActionForm form, HttpServletRequest request,			HttpServletResponse response) throws Exception {		HttpSession session = request.getSession(false);		if (session != null) {			// Create the Degree Type List			Integer curricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID"));			String executionDegreeId = (String) request.getAttribute(SessionConstants.EXECUTION_DEGREE);			if (executionDegreeId == null) {				executionDegreeId = request.getParameter(SessionConstants.EXECUTION_DEGREE);			}			session.setAttribute(SessionConstants.EXECUTION_YEAR, session					.getAttribute(SessionConstants.EXECUTION_YEAR));			if (curricularPlanID == null) {				curricularPlanID = (Integer) request.getAttribute("curricularPlanID");			}			request.setAttribute("curricularPlanID", curricularPlanID);			request.setAttribute(SessionConstants.EXECUTION_DEGREE, executionDegreeId);			// Get the Degree List			/*			 * List degreeList = null; String executionYearName = (String)			 * createCandidateForm.get("executionYear"); Object args[] = {			 * executionYearName };			 * //session.removeAttribute(SessionConstants.EXECUTION_YEAR); try {			 * degreeList = (ArrayList)			 * ServiceManagerServiceFactory.executeService(userView,			 * "ReadMasterDegrees", args); } catch (ExistingServiceException e) {			 * throw new ExistingActionException("Degree" ,e); }			 * //BeanComparator nameComparator = new			 * BeanComparator("infoDegreeCurricularPlan.infoDegree.nome");			 * //Collections.sort(degreeList, nameComparator);			 * Collections.sort(degreeList, new			 * ComparatorByNameForInfoExecutionDegree()); List newDegreeList =			 * degreeList; List executionDegreeLabels =			 * buildExecutionDegreeLabelValueBean(newDegreeList);			 * request.setAttribute(SessionConstants.DEGREE_LIST,			 * executionDegreeLabels);			 */			// Create the type of Identification Document			/*			 * request.setAttribute(SessionConstants.IDENTIFICATION_DOCUMENT_TYPE_LIST,			 * TipoDocumentoIdentificacao.toArrayList());			 */			return mapping.findForward("PrepareSuccess");		}		throw new Exception();	}