teacherForm.set("teacherNumber", null);
    public ActionForward dissociateProfShipsAndRespFor(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException {        HttpSession session = request.getSession(false);        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        DynaActionForm teacherForm = (DynaActionForm) form;        Integer teacherNumber = Integer.valueOf((String) teacherForm.get("teacherNumber"));        Integer professorshipsListSize = (Integer) teacherForm.get("professorshipsListSize");        Integer responsibleForListSize = (Integer) teacherForm.get("responsibleForListSize");        teacherForm.set("teacherNumber", null);        List professorshipsToDelete = getInformationToDissociate(request, professorshipsListSize,                "professorship", "idInternal", "toDelete");        List responsibleForsToDelete = getInformationToDissociate(request, responsibleForListSize,                "responsibleFor", "idInternal", "toDelete");        ActionErrors errors = new ActionErrors();        HashMap professorshipsNotRemoved = null;        Object[] args = { teacherNumber, professorshipsToDelete, responsibleForsToDelete };        try {            professorshipsNotRemoved = (HashMap) ServiceUtils.executeService(userView,                    "DissociateProfessorShipsAndResponsibleFor", args);        } catch (NonExistingServiceException e) {            if (e.getMessage().equals("noTeacher")) {                errors.add("chosenTeacher", new ActionError(                        "error.manager.teachersManagement.noTeacher", teacherNumber));                saveErrors(request, errors);            } else {                throw new NonExistingActionException("");            }        } catch (FenixServiceException e) {            if (e.getMessage().equals("nullTeacherNumber")) {                errors.add("nullCode", new ActionError(                        "error.manager.teachersManagement.noTeacherNumber"));                saveErrors(request, errors);            } else if (e.getMessage().equals("nullPSNorRF")) {                errors.add("nullPSNorRF", new ActionError(                        "error.manager.teachersManagement.nullPSNorRF", teacherNumber));                saveErrors(request, errors);            } else if (e.getMessage().equals("notPSNorRFTeacher")) {                errors.add("notPSNorRFTeacher", new ActionError(                        "error.manager.teachersManagement.notPSNorRFTeacher"));                saveErrors(request, errors);            } else {                throw new FenixActionException(e);            }        }        if (!errors.isEmpty()) {            return mapping.getInputForward();        }        if (professorshipsNotRemoved != null && professorshipsNotRemoved.size() > 0) {            errors = createErrors(professorshipsNotRemoved, new String("supportLessons"), "PSWithSL",                    "error.manager.teachersManagement.PSWithSL", errors);            errors = createErrors(professorshipsNotRemoved, new String("shifts"), "PSWithS",                    "error.manager.teachersManagement.PSWithS", errors);            saveErrors(request, errors);            return prepareDissociateECShowProfShipsAndRespFor(mapping, form, request, response);        }        return prepareDissociateEC(mapping, form, request, response);    }