class UrlHelper {

  public static Map<String, String> splitQuery(String query) {
    Map<String, String> queryPairs = new HashMap<String, String>();
    String[] pairs = query.split("&");
    for (String pair : pairs) {
      int delimiterIndex = pair.indexOf("=");
      queryPairs.put(pair.substring(0, delimiterIndex), pair.substring(delimiterIndex + 1));
    }
    return queryPairs;
  }

  private  UrlHelper();

}