public static <K,V> Map<K,V> parseMapString(String string) {
		if (!(string.startsWith("{") && string.endsWith("}"))) {
			throw new IllegalArgumentException("Not a map string: " + string);
		}
		
		string = string.substring(1, string.length() - 1);
		LinkedHashMap map = new LinkedHashMap();
		for (String pairStr : string.split(", ")) {
			int indexOf = pairStr.indexOf("=");
			map.put(pairStr.substring(0, indexOf), pairStr.substring(indexOf + 1));
		}
		return map;
	}