org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java
public String[] replaceParameter(String name, String value)
  {
    Map<String, String[]> map = getMap();
    String[] v = map.put(name, new String[] { value });
    rebuildQuery();
    return v;
  }
public String[] replaceParameter(String name, String value)
  {
    Map<String, String[]> map = getMap();
    String[] v = map.put(name, new String[] { value });
    rebuildQuery();
    return v;
  }
Replace existing or add new parameter with given
value. Any existing parameter values are
deleted prior to adding the new value.

@param name parameter to replace
@return previous values or null if parameter doesn't exist