Country selectCountry = new Country();
InfoCountry selectCountry = new InfoCountry();
    public ActionForward prepareEditGrantOwnerForm(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        Integer loaddb = null;        Integer personId = null;        Integer idInternal = null;        if (verifyParameterInRequest(request, "loaddb")) {            loaddb = new Integer(request.getParameter("loaddb"));        }        if (verifyParameterInRequest(request, "personId")) {            personId = new Integer(request.getParameter("personId"));        }        if (verifyParameterInRequest(request, "idGrantOwner")) {            idInternal = new Integer(request.getParameter("idGrantOwner"));        }        /*         * loaddb=1 --> first time on page, load contents from db personId not         * null --> create grant owner from searchGrantOwnerResult idGrantOwner         * not null --> edit grant owner from manageGrantOwner         */        InfoGrantOwner infoGrantOwner = new InfoGrantOwner();        if (loaddb != null && loaddb.equals(new Integer(1))) //Load contents        // from database        {            if (idInternal != null) //Comes from manageGrantOwner            {                try {                    //Read the grant owner                    Object[] args = { idInternal };                    infoGrantOwner = (InfoGrantOwner) ServiceUtils.executeService(SessionUtils                            .getUserView(request), "ReadGrantOwner", args);                } catch (Exception e) {                    return setError(request, mapping, "errors.grant.unrecoverable",                            "manage-grant-owner", null);                }            } else if (personId != null) {                try {                    //Read the person (grant owner doesn't exist)                    Object[] args = { personId };                    InfoPerson infoPerson = null;                    infoPerson = (InfoPerson) ServiceUtils.executeService(SessionUtils                            .getUserView(request), "ReadPersonByID", args);                    infoGrantOwner.setPersonInfo(infoPerson);                } catch (Exception e) {                    return setError(request, mapping, "errors.grant.unrecoverable",                            "manage-grant-owner", null);                }            }        }        //Fill the form (grant owner e person information)        DynaValidatorForm grantOwnerInformationForm = (DynaValidatorForm) form;        if (infoGrantOwner.getIdInternal() != null) {            setFormGrantOwnerInformation(grantOwnerInformationForm, infoGrantOwner);        }        if (infoGrantOwner.getPersonInfo() != null                && infoGrantOwner.getPersonInfo().getIdInternal() != null                && !infoGrantOwner.getPersonInfo().getIdInternal().equals(new Integer(0))) {            setFormPersonalInformation(grantOwnerInformationForm, infoGrantOwner);        }        if (infoGrantOwner.getIdInternal() != null) {            request.setAttribute("idInternal", infoGrantOwner.getIdInternal().toString());        }        /*List documentTypeList = TipoDocumentoIdentificacao.toIntegerArrayList();        request.setAttribute("documentTypeList", documentTypeList);*/        List maritalStatusList = Arrays.asList(MaritalStatus.values());        request.setAttribute("maritalStatusList", maritalStatusList);        try {            List countryList = (List) ServiceUtils.executeService(SessionUtils.getUserView(request),                    "ReadAllCountries", null);            //Adding a select country line to the list (presentation reasons)            Country selectCountry = new Country();            selectCountry.setIdInternal(null);            selectCountry.setName("[Escolha um pas]");            countryList.add(0, selectCountry);            request.setAttribute("countryList", countryList);        } catch (Exception e) {            return setError(request, mapping, "errors.grant.unrecoverable", "manage-grant-owner", null);        }        return mapping.findForward("edit-grant-owner-form");    }