Country selectCountry = new Country();
InfoCountry selectCountry = new InfoCountry();
    public ActionForward prepareEditGrantQualificationForm(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        Integer idQualification = null;        if (verifyParameterInRequest(request, "idQualification")) {            idQualification = new Integer(request.getParameter("idQualification"));        }        DynaValidatorForm grantQualificationForm = (DynaValidatorForm) form;        IUserView userView = SessionUtils.getUserView(request);        Integer idPerson = null;        if (idQualification != null && request.getParameter("load") != null) //Edit        {            try {                //Read the qualification                Object[] args = { idQualification };                InfoQualification infoGrantQualification = (InfoQualification) ServiceUtils                        .executeService(userView, "ReadQualification", args);                //Populate the form                setFormGrantQualification(grantQualificationForm, infoGrantQualification);                idPerson = infoGrantQualification.getInfoPerson().getIdInternal();            } catch (FenixServiceException e) {                return setError(request, mapping, "errors.grant.qualification.read",                        "manage-grant-qualification", null);            }        } else //New        {            try {                if (verifyParameterInRequest(request, "idPerson")) {                    idPerson = new Integer(request.getParameter("idPerson"));                }                grantQualificationForm.set("idPerson", idPerson);            } catch (Exception e) {                return setError(request, mapping, "errors.grant.unrecoverable",                        "manage-grant-qualification", null);            }        }        //Setting request values        request.setAttribute("idPerson", idPerson);        request.setAttribute("username", request.getParameter("username"));        request.setAttribute("idGrantOwner", request.getParameter("idGrantOwner"));        request.setAttribute("grantOwnerNumber", request.getParameter("grantOwnerNumber"));        List countryList = null;        try {            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-qualification", null);        }        return mapping.findForward("edit-grant-qualification");    }