protected void showSelectedCity(SessionRequestContent request) {
        String selected = request.getParameter(JSP_SELECT_ID);
        City currCity = null;
        if (selected != null) {
            Integer idCity = Integer.decode(selected);
            if (idCity != null) {
                List<City> list = (List<City>) request.getSessionAttribute(JSP_CITY_LIST);
                Iterator<City> it = list.iterator();
                while (it.hasNext() && currCity == null) {
                    City city = it.next();
                    if (Objects.equals(city.getIdCity(), idCity)) {
                        currCity = city;
                        request.setAttribute(JSP_CURR_ID_CITY, idCity);
                    }
                }
            }
        }
        request.setSessionAttribute(JSP_CURRENT_CITY, currCity);
    }