if (infoGrantSubsidy.getState().equals(new Integer(-1))) {
if (infoGrantSubsidy.getState().equals(Integer.valueOf(-1))) {
    public ActionForward doEdit(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        try {            DynaValidatorForm editGrantSubsidyForm = (DynaValidatorForm) form;            InfoGrantSubsidy infoGrantSubsidy = populateInfoFromForm(editGrantSubsidyForm);            if (infoGrantSubsidy.getDateBeginSubsidy().after(infoGrantSubsidy.getDateEndSubsidy())) {                return setError(request, mapping, "errors.grant.subsidy.conflictdates", null, null);            }            IUserView userView = SessionUtils.getUserView(request);            if (infoGrantSubsidy.getState().equals(new Integer(-1))) {                //If is a new Subsidy                infoGrantSubsidy.setState(new Integer(1)); //Active the subsidy            }            //Save the subsidy            Object[] args = { infoGrantSubsidy };            ServiceUtils.executeService(userView, "EditGrantSubsidy", args);            request.setAttribute("idInternal", editGrantSubsidyForm.get("idGrantOwner"));        } catch (FenixServiceException e) {            return setError(request, mapping, "errors.grant.subsidy.edit", null, null);        } catch (Exception e) {            return setError(request, mapping, "errors.grant.unrecoverable", null, null);        }        return mapping.findForward("manage-grant-subsidy");    }