static B syncPut(Map map, A key, B value) { if (map == null) null; synchronized(map) { ret map.put(key, value); } }