HttpSession session = request.getSession(); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);
}
	public ActionForward initializeShiftEnrolment(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {		HttpSession session = request.getSession();		IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);		// retrieve the student information to fill the info 		// to be passed to the readShifts service		InfoStudent infoStudent = null;		infoStudent = (InfoStudent) ServiceUtils.executeService(userView, "ReadStudentByUsername", new Object[] { userView.getUtilizador()});		InfoShiftStudentEnrolment infoShiftStudentEnrolment = new InfoShiftStudentEnrolment();		infoShiftStudentEnrolment.setInfoStudent(infoStudent);		infoShiftStudentEnrolment = (InfoShiftStudentEnrolment) ServiceUtils.executeService(userView, "ReadStudentShiftEnrolment", new Object[] { infoShiftStudentEnrolment });		session.setAttribute(SessionConstants.INFO_STUDENT_SHIFT_ENROLMENT_CONTEXT_KEY, infoShiftStudentEnrolment);		// if the user has chosen to enrol by class we show a jsp , otherwise, 		// proceed to the showAvailableShifts action 		// WONDER: tdi-dev (bruno) -> is this correct? to get a 'variable' directly...		String divisor = request.getParameter("divideMethod");		//TODO:  tdi-dev (edgar.goncalves2bruno.lopes) -> divideMethod isn't necessary. remove? (change if below)		//ANSWER: tdi-dev (bruno.lopes2edgar.goncalves) -> indeed. (when (stable) (remove offending-code)) 		if (divisor == null || divisor.equals("classes")) {			return mapping.findForward("selectClass");		} else { // assume that if the user doesn't want to choose a class, then he wants to choose by course			return showAvailableShifts(mapping, form, request, response);		}	}