@Override
    public String execute(SessionRequestContent request) throws ServletLogicException {
        String page = ConfigurationManager.getProperty("path.page.editcity");
        resaveParamsSaveCity(request);
        try {
            Criteria criteria = new Criteria();
            City city = (City) request.getSessionAttribute(JSP_CURRENT_CITY);
            Validator.validateCity(city);
            Integer idCity = city.getIdCity();
            if (idCity != null) {
                criteria.addParam(DAO_ID_CITY, idCity);
            }
            Integer idDescription = city.getDescription().getIdDescription();
            if (idDescription != null) {
                criteria.addParam(DAO_ID_DESCRIPTION, idDescription);
            }
            criteria.addParam(DAO_CITY_NAME, city.getName());
            criteria.addParam(DAO_CITY_PICTURE, city.getPicture());
            criteria.addParam(DAO_DESCRIPTION_TEXT, city.getDescription().getText());
            criteria.addParam(DAO_ID_COUNTRY, city.getCountry().getIdCountry());

            User user = (User) request.getSessionAttribute(JSP_USER);
            if (user != null) {
                criteria.addParam(DAO_USER_LOGIN, user.getLogin());
                ClientType type = ClientTypeManager.clientTypeOf(user.getRole().getRoleName());
                criteria.addParam(DAO_ROLE_NAME, type);
            } else {
                criteria.addParam(DAO_ROLE_NAME, request.getSessionAttribute(JSP_ROLE_TYPE));
            }
            AbstractLogic cityLogic = LogicFactory.getInctance(LogicType.CITYLOGIC);
            Integer resIdCity = cityLogic.doRedactEntity(criteria);
            request.setParameter(JSP_SELECT_ID, resIdCity.toString());
            page = new GoShowCity().execute(request);
        } catch (TechnicalException | LogicException ex) {
            request.setAttribute("errorSaveReason", ex.getMessage());
            request.setAttribute("errorSave", "message.errorSaveData");
            request.setSessionAttribute(JSP_PAGE, page);
        }
        return page;
    }