code: public static String newUrl(final String baseUrl, 
          final Collection<Pair<String, String>> params)
          {
          final StringBuilder sb = new StringBuilder();
          sb.append(baseUrl);
          sb.append(getUrlParameters(params, true));
          return sb.toString();
          }
docs: Creates a new URL string from the specified base URL and parameters.
  
  @param baseUrl The base URL excluding parameters.
  @param params The parameters.
  @return The full URL string.