code: public String applyOnURL(String url) {
          if (StringUtils.isBlank(url)) {
              return url;
          }
          return StringUtils.substringBefore(url, "?") + toString();
      }
docs: Apply this url QueryString on the given URL. If a query string already
  exists, it is replaced by this one.
  @param url the URL to apply this query string.
  @return url with query string added