static TreeMap asCaseInsensitiveMap(Map map) { if (isCIMap(map)) ret (TreeMap) map; TreeMap m = ciMap(); m.putAll(map); ret m; }