code: @Override
      public String toUrl() {
          return String.format("%s.js%s", Ref.getRelativeRef(ref),
                  getParams().size() > 0 ? ("?" + URLEncodedUtils.format(getParams(), "utf-8")) : "");
      }
docs: <p>Convert this request into a url compatible with the WSAPI.</p>
  Any parameters set will be included.
  
  @return the url representing this request.