code: protected Map<String, String> convertParameters(WikiParameters params)
      {
          Map<String, String> xwikiParams;
  
          if (params.getSize() > 0) {
              xwikiParams = new LinkedHashMap<String, String>();
              for (WikiParameter wikiParameter : params.toList()) {
                  xwikiParams.put(wikiParameter.getKey(), wikiParameter.getValue());
              }
          } else {
              xwikiParams = Listener.EMPTY_PARAMETERS;
          }
  
          return xwikiParams;
      }
docs: Convert Wikimodel parameters to XWiki parameters format.
  
  @param params the wikimodel parameters to convert
  @return the parameters in XWiki format