static HashMap asHashMap(Map map) { // check for precise type to reject LinkedHashMap if (map != null && map.getClass() == HashMap.class) ret (HashMap) map; HashMap m = new HashMap(l(map)); if (map != null) m.putAll(map); ret m; }