static Map toWeakHashMap(Map map) { if (isWeakHashMap(map)) ret map; ret putAll(weakMap(), map); }