static A setThreadLocal(ThreadLocal tl, A value) { if (tl == null) null; A old = tl.get(); tl.set(value); ret old; }