request.setAttribute("siteView",siteView); HashMap parameters = new HashMap(); parameters.put("objectCode",executionCourseIdInteger); sendMailForm.setState(super.serializeParameters(parameters));
	public ActionForward start(ActionMapping mapping, ActionForm form, HttpServletRequest request,			HttpServletResponse response) throws NumberFormatException, FenixFilterException,			FenixServiceException, FenixActionException {		HttpSession session = request.getSession(false);		IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);		String executionCourseIdString = (String) ((String[]) request.getParameterMap().get("objectCode"))[0];		Integer executionCourseIdInteger = new Integer(executionCourseIdString);		String[] programIdsString = (String[]) request.getParameterMap().get("coursesIDs");		String[] enrollmentTypesString = (String[]) request.getParameterMap().get("enrollmentType");		String[] shiftsIdsString = (String[]) request.getParameterMap().get("shiftIDs");		Integer[] programIdsInteger = null;		Integer[] shiftsIdsInteger = null;		List enrollmentTypeList = null;		List programIds = null;		List shiftIDs = null;				if (programIdsString != null) {			programIdsInteger = new Integer[programIdsString.length];			for (int i = 0; i < programIdsString.length; i++) {				programIdsInteger[i] = new Integer(programIdsString[i]);			}		}		if (shiftsIdsString != null) {			shiftsIdsInteger = new Integer[shiftsIdsString.length];			for (int i = 0; i < shiftsIdsString.length; i++) {				shiftsIdsInteger[i] = new Integer(shiftsIdsString[i]);			}		}		try {			if (enrollmentTypesString != null) {				enrollmentTypeList = new ArrayList();				for (int i = 0; i < enrollmentTypesString.length; i++) {					if (enrollmentTypesString[i].equals(AttendacyStateSelectionType.ALL.toString())) {						enrollmentTypeList = null;						break;					}					enrollmentTypeList.add(new AttendacyStateSelectionType(enrollmentTypesString[i]));				}			}			if (programIdsInteger != null) {				programIds = new ArrayList();				for (int i = 0; i < programIdsInteger.length; i++) {					if (programIdsInteger[i].equals(new Integer(0))) {						programIds = null;						break;					}					programIds.add(programIdsInteger[i]);				}			}			if (shiftsIdsInteger != null) {				shiftIDs = new ArrayList();				for (int i = 0; i < shiftsIdsInteger.length; i++) {					if (shiftsIdsInteger[i].equals(new Integer(0))) {						shiftIDs = null;						break;					}					shiftIDs.add(shiftsIdsInteger[i]);				}			}						Object args[] = { executionCourseIdInteger, programIds, enrollmentTypeList, shiftIDs };			Collection<Student> students = (Collection<Student>) ServiceManagerServiceFactory.executeService(userView, "ReadDomainStudentsByExecutionCourseAndDegreeTypeAndShiftAttendAndEnrollmentType", args);															IGroup group = new FixedSetGroup(CollectionUtils.collect(students,new StudentPersonTransformer()));												SendMailForm sendMailForm = (SendMailForm) form;			sendMailForm.setGroup(super.getSerializedGroup(group));		}		catch (FenixServiceException e) {			throw new FenixActionException(e);		}		return super.start(mapping, form, request, response);	}