code: public static Map<String, Object> parseQuerystring(String query) {
          String[] params = query.split("&");
          Map<String, Object> map = new HashMap<String, Object>();
          for (String param : params) {
              String[] nameValue = param.split("=");
              map.put(nameValue[0], nameValue[1]);
          }
          return map;
      }
docs: Returns a map of key / value pairs from a given querystring.
  
  @param query
  @return k/v map