public static JSONObject prepareAndGetJSON (String provider, int cityId) {
        WeatherGateway weatherGateway = new WeatherGateway();
        CityGateway cityGateway = new CityGateway();
        switch (provider) {
            case "WUA": {
                Weather currentWUA = weatherGateway.getCurrentWUA(cityId);
                if (currentWUA != null) {
                    String cityName = cityGateway.getCityNameWUA(cityId);
                    if (cityName!=null) {
                        return prepareJSON(currentWUA,cityName);
                    }
                }
                return null;
            }
            case "Yandex": {
                Weather currentYandex = weatherGateway.getCurrentYandex(cityId);
                if (currentYandex != null) {
                    String cityName = cityGateway.getCityNameYandex(cityId);
                    if (cityName!=null) {
                        return prepareJSON(currentYandex,cityName);
                    }
                }
                return null;
            }
            default:
                return null;
        }

    }