Object[] args = { executionCourseId, summaryId, teacherNumber };
Object[] args = { teacherNumber, executionCourseId, summaryId };
	public ActionForward prepareEditSummary(ActionMapping mapping, ActionForm form,			HttpServletRequest request, HttpServletResponse response) {		HttpSession session = request.getSession(false);		IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);				String summaryIdString = request.getParameter("summaryCode");		Integer summaryId = new Integer(summaryIdString);				Integer executionCourseId = getObjectCode(request);		request.setAttribute("objectCode", executionCourseId);				Integer teacherNumber = getTeacherNumber(request);		request.setAttribute("teacherNumber", teacherNumber);				Object[] args = { executionCourseId, summaryId, teacherNumber };		SiteView siteView = null;		try {			siteView = (SiteView) ServiceUtils.executeService(userView, "ReadSummaryDepartment", args);                    						boolean loggedIsResponsible = false;			List responsibleTeachers = null;			Object argsReadResponsibleTeachers[] = { executionCourseId };			responsibleTeachers = (List) ServiceManagerServiceFactory.executeService(userView,					"ReadTeachersByExecutionCourseResponsibility", argsReadResponsibleTeachers);			for (Iterator iter = responsibleTeachers.iterator(); iter.hasNext();) {				InfoTeacher infoTeacher = (InfoTeacher) iter.next();				if (infoTeacher.getTeacherNumber().equals(teacherNumber))					loggedIsResponsible = true;				break;			}						request.setAttribute("loggedIsResponsible", new Boolean(loggedIsResponsible));						if (!loggedIsResponsible) {				InfoTeacher infoTeacher = (InfoTeacher) ServiceManagerServiceFactory.executeService(						userView, "ReadTeacherByNumber", new Object[] { teacherNumber });								InfoProfessorship infoProfessorship = (InfoProfessorship) ServiceManagerServiceFactory				.executeService(userView, "ReadProfessorshipByTeacherIDandExecutionCourseIDDepartment",						new Object[] { infoTeacher.getIdInternal(), executionCourseId });								request.setAttribute("loggedTeacherProfessorship", infoProfessorship.getIdInternal());			} else {				DynaActionForm summaryForm = (DynaActionForm) form;				if ((((InfoSiteSummary) siteView.getComponent())).getInfoSummary().getInfoTeacher() != null) {					summaryForm.set("teacherNumber", (((InfoSiteSummary) siteView.getComponent()))							.getInfoSummary().getInfoTeacher().getTeacherNumber());					summaryForm.set("teacher", "0");				} else if ((((InfoSiteSummary) siteView.getComponent())).getInfoSummary()						.getInfoProfessorship() != null) {										summaryForm.set("teacher", (((InfoSiteSummary) siteView.getComponent()))							.getInfoSummary().getInfoProfessorship().getIdInternal().toString());				} else {					summaryForm.set("teacher", "-1");					summaryForm.set("teacherName", (((InfoSiteSummary) siteView.getComponent()))							.getInfoSummary().getTeacherName());				}			}								} catch (FenixServiceException e) {			ActionErrors actionErrors = new ActionErrors();			actionErrors.add("error.editSummary", new ActionError("error.summary.impossible.preedit"));			actionErrors.add("error.editSummary", new ActionError(e.getMessage()));			saveErrors(request, actionErrors);			return showSummaries(mapping, form, request, response);		}		if (siteView == null) {			ActionErrors errors = new ActionErrors();			errors.add("error", new ActionError("error.summary.impossible.edit"));			saveErrors(request, errors);			return showSummaries(mapping, form, request, response);		}				try {			shiftChanged(request, siteView);			choosenLesson(request, (InfoSiteSummary) siteView.getComponent());		} catch (Exception e) {			e.printStackTrace();			return showSummaries(mapping, form, request, response);		}				request.setAttribute("siteView", siteView);				return mapping.findForward("editSummary");	}