public static void addParamOverride(
            final Multimap<String, String> params, final String key, final String value) {
        params.removeAll(key);
        params.put(key, value);
    }
public static void addParamOverride ( final Multimap < String , String > params , final String key , final String value ) { params . removeAll ( key ) ; params . put ( key , value ) ; }
Add a parameter to the query params (the params map) replacing any parameter that might be there.

@param params the query parameters
@param key the key/param name
@param value the value to insert