code: public static Map<String, String> parseQuery(String query) {
  		Map<String, String> result = new LinkedHashMap<String, String>();
  		
  		if (query != null) {
  			for (String keyValue: query.split("&")) {
  				String[] pair = keyValue.split("=");
  				result.put(StringUtils.urlDecode(pair[0]), StringUtils.urlDecode(pair[1]));
  			}
  		}
  		
  		return result;
  	}
docs: Breaks down a standard query string (ie "param1=foo&param2=bar")
  @return an empty map if the query is empty or null