public HashMap<String, String> copyHashMap(HashMap<String, String> map) {
		HashMap<String, String> out = new HashMap<String, String>();
		for (String key : map.keySet()) {
			out.put(key, map.get(key));
		}
		return out;
	}