docs: public static JSONObject getJsonParameterMap(Map<String, String[]> params) {
  
          JSONObject result = new JSONObject();
          for (Map.Entry<String, String[]> entry : params.entrySet()) {
              String paramKey = entry.getKey();
              JSONArray paramValue = new JSONArray();
              for (int i = 0, l = entry.getValue().length; i < l; i++) {
                  paramValue.put(entry.getValue()[i]);
              }
              try {
                  result.putOpt(paramKey, paramValue);
              } catch (JSONException e) {
                  // should never happen
                  LOG.warn(e.getLocalizedMessage(), e);
              }
          }
          return result;
      }