code: private void rebuildQuery()
    {
      Map<String, String[]> map = getMap();
      
      // reset query instance and re-populate it again
      _query.setLength(0);
      for (String key : map.keySet())
      {
        String[] parameters = map.get(key);
        for (String param : parameters)
        {
          addQueryParameter(key, param);
        }
      }
    }
docs: Rebuild query instance with values in the map.