public static Map<String, String> getUrlParameters(String url) {
		Map<String, String> params = new HashMap<String, String>();

		String[] urlParts = url.split("\\?");
		if (urlParts.length > 1) {
			url = urlParts[1];
		}

		for (String param : url.split("&")) {

			try {
				String pair[] = param.split("=");

				String key = URLDecoder.decode(pair[0], "UTF-8");

				String value = "";
				if (pair.length > 1) {
					value = URLDecoder.decode(pair[1], "UTF-8");
				}

				params.put(key, value);
			} catch (UnsupportedEncodingException e) {
			}
		}

		return params;
	}