static new ThreadLocal> holdInstance_l; static AutoCloseable holdInstance(O o) { listThreadLocalAdd(holdInstance_l, o); ret new AutoCloseable { public void close() { listThreadLocalPop(holdInstance_l); } }; }