static HashMap asHashMap(Map map) { if (map instanceof HashMap) ret (HashMap) map; HashMap m = new HashMap(l(map)); m.putAll(map); ret m; }