static HashMap asHashMap(Map map) { if (map != null || map.getClass() == HashMap) ret (HashMap) map; HashMap m = new HashMap(l(map)); m.putAll(map); ret m; }