class URLEncodedUtils {

  public static Map<String, Set<String>> parse(final URI uri, final String encoding) {
    Map<String, Set<String>> result = Collections.emptyMap();
    final String query = uri.getRawQuery();
    if (query != null && query.length() > 0) {
      result = new HashMap<>();
      parse(result, new Scanner(query), encoding, true);
    }
    return result;
  }

}