docs: public void setGetParams(TreeSet<HtmlParameter> getParams) {
          if (mUri == null) {
              return;
          }
  
          if (getParams.isEmpty()) {
              try {
                  mUri.setQuery("");
          
              } catch (URIException e) {
                  log.error(e.getMessage(), e);
              }
              
              return;
          }
  
          StringBuilder sbQuery = new StringBuilder();
          for (HtmlParameter parameter : getParams) {
              if (parameter.getType() != HtmlParameter.Type.url) {
                  continue;
              }
  
              sbQuery.append(parameter.getName());
              sbQuery.append('=');
              sbQuery.append(parameter.getValue());
              sbQuery.append('&');
          }
  
          if (sbQuery.length() <= 2) {
              try {
                  mUri.setQuery("");
              
              } catch (URIException e) {
                  log.error(e.getMessage(), e);
              }
              
              return;
          }
  
          String query = sbQuery.substring(0, sbQuery.length() - 1);
  
          try {
              //The previous behaviour was escaping the query,
              //so it is maintained with the use of setQuery.
              mUri.setQuery(query);
              
          } catch (URIException e) {
              log.error(e.getMessage(), e);
          }
      }