code: @Deprecated
    public String toUrl(String searchString, String existingRefinements) throws UrlBeautifier.UrlBeautificationException {
      StringBuilder pathSegmentLookup = new StringBuilder("/");
      Query query = createQuery();
      if (StringUtils.isNotBlank(searchString)) {
        query.setQuery(searchString);
      }
      URIBuilder uri = new URIBuilder();
      uri.setPath("");
      query.addRefinementsByString(existingRefinements);
      Map<String, Navigation> navigations = getDistinctRefinements(query);
      addRefinements(query.getQuery(), navigations, pathSegmentLookup, uri);
      addReferenceBlock(pathSegmentLookup, uri);
      addAppend(uri);
      addUnmappedRefinements(navigations, uri);
      String uriString = uri.toString();
      return uriString.startsWith("null") ? uriString.substring(4) : uriString;
    }
docs: <code>
  Convert a search term and a list of refinements into a beautified URL.
  Each refinement that has a mapping will be turned into a path segment.
  If a mapping has been created for search, the search term will also be
  placed into a URL path segment.
  </code>
  
  @deprecated Use {@link #toUrl(String, Map)} ()}
  @param searchString
  The current search state.
  @param existingRefinements
  The current refinement state
  
  @throws UrlBeautifier.UrlBeautificationException