final InfoProfessorship infoProfessorship = new InfoProfessorship();
    public ActionForward createProfessorship(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        DynaActionForm teacherExecutionCourseForm = (DynaActionForm) form;        Integer teacherNumber = Integer                .valueOf((String) teacherExecutionCourseForm.get("teacherNumber"));        Boolean responsibleFor = (Boolean) teacherExecutionCourseForm.get("responsibleFor");        Integer executionCourseId = Integer.valueOf((String) teacherExecutionCourseForm                .get("executionCourseId"));        InfoProfessorship infoProfessorship = new InfoProfessorship();        InfoExecutionCourse infoExecutionCourse = new InfoExecutionCourse(executionCourseId);        InfoTeacher infoTeacher = new InfoTeacher();        infoTeacher.setTeacherNumber(teacherNumber);        infoProfessorship.setInfoExecutionCourse(infoExecutionCourse);        infoProfessorship.setInfoTeacher(infoTeacher);        Object arguments[] = { infoProfessorship, responsibleFor };        executeService("InsertProfessorshipByDepartment", request, arguments);        return mapping.findForward("final-step");    }