e.printStackTrace();
    public ActionForward doEdit(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        InfoGrantProject infoGrantProject = new InfoGrantProject();        try {            IUserView userView = SessionUtils.getUserView(request);               DynaValidatorForm editGrantProjectForm = (DynaValidatorForm) form;            infoGrantProject = populateInfoFromForm(editGrantProjectForm);            //Check if teacher exists            InfoTeacher infoTeacher = null;            if (infoGrantProject.getInfoResponsibleTeacher() != null) {                Object[] argsTeacher = { infoGrantProject.getInfoResponsibleTeacher().getTeacherNumber() };                infoTeacher = (InfoTeacher) ServiceUtils.executeService(userView, "ReadTeacherByNumber",                        argsTeacher);            }            if (infoTeacher == null) {                return setError(request, mapping, "errors.grant.paymententity.unknownTeacher", null,                        editGrantProjectForm.get("responsibleTeacherNumber"));            }            infoGrantProject.setInfoResponsibleTeacher(infoTeacher);            //Check if grant cost center exists            InfoGrantCostCenter infoGrantCostCenter = null;            if (infoGrantProject.getInfoGrantCostCenter() != null) {                Object[] argsCostCenter = { infoGrantProject.getInfoGrantCostCenter().getNumber(),                        InfoGrantPaymentEntity.getGrantCostCenterOjbConcreteClass() };                infoGrantCostCenter = (InfoGrantCostCenter) ServiceUtils.executeService(userView,                        "ReadPaymentEntityByNumberAndClass", argsCostCenter);            }            if (infoGrantCostCenter == null) {                return setError(request, mapping, "errors.grant.paymententity.unknownCostCenter", null,                        editGrantProjectForm.get("grantCostCenterNumber"));            }            infoGrantProject.setInfoGrantCostCenter(infoGrantCostCenter);            //Edit-Create the project            Object[] args = { infoGrantProject };            ServiceUtils.executeService(userView, "EditGrantPaymentEntity", args);                        return mapping.findForward("manage-grant-project");        } catch (ExistingServiceException e) {            return setError(request, mapping, "errors.grant.project.duplicateEntry", null,                    infoGrantProject.getNumber());        } catch (FenixServiceException e) {            return setError(request, mapping, "errors.grant.project.bd.create", null, null);        }    }