Object args[] = { objectCode, teacherNumber };
Object args[] = { teacherNumber, objectCode };
	public ActionForward prepareInsertSummary(ActionMapping mapping, ActionForm form,			HttpServletRequest request, HttpServletResponse response) {		HttpSession session = request.getSession(false);		UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW);				Integer objectCode = getObjectCode(request);		Integer teacherNumber = getTeacherNumber(request);				DynaActionForm formBean = (DynaActionForm) form;		formBean.set("teacherNumber", teacherNumber);		formBean.set("objectCode", objectCode);				processAnotherDate(request, form);				boolean loggedIsResponsible = false;		List responsibleTeachers = null;		Object argsReadResponsibleTeachers[] = { objectCode };		try {			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(), objectCode });								request.setAttribute("loggedTeacherProfessorship", infoProfessorship.getIdInternal());			}					} catch (Exception e) {			e.printStackTrace();			ActionErrors errors = new ActionErrors();			errors.add("error", new ActionError("Can't find course's responsible teacher"));			saveErrors(request, errors);			return showSummaries(mapping, form, request, response);		}				Object args[] = { objectCode, teacherNumber };		SiteView siteView = null;		try {			siteView = (SiteView) ServiceManagerServiceFactory.executeService(userView,					"PrepareInsertSummaryDepartment", args);					} catch (Exception e) {			e.printStackTrace();			ActionErrors errors = new ActionErrors();			errors.add("error", new ActionError("error.summary.impossible.insert"));			saveErrors(request, errors);			return showSummaries(mapping, form, request, response);		}		if (siteView == null) {			ActionErrors errors = new ActionErrors();			errors.add("error", new ActionError("error.summary.impossible.insert"));			saveErrors(request, errors);			return showSummaries(mapping, form, request, response);		}		request.setAttribute("siteView", siteView);				try {			choosenShift(request, ((InfoSiteSummaries) siteView.getComponent()).getInfoShifts());			choosenLesson(request, (InfoSummary) request.getAttribute("summaryToInsert"));		} catch (Exception e) {			e.printStackTrace();			return showSummaries(mapping, form, request, response);		}				return mapping.findForward("insertSummary");	}