static A lookupOrKeep(Map map, A key) { ret map != null && map.containsKey(key) ? map.get(key) : key; }