code: public void setParameters(Map<String, String> parameters) {
          this.parameters.clear();
          this.parameters.putAll(parameters);
      }
docs: Replaces all current parameters with the parameters defined within the
  given map. Key/value pairs within the map represent parameter name/value
  pairs.
  
  @param parameters
  A map which contains all parameter name/value pairs as key/value
  pairs.