static new ThreadLocal thoughtSpace_byThread; // get for current thread static ThoughtSpace thoughtSpace() { ret thoughtSpace_byThread!; } // set for current thread static ThoughtSpace thoughtSpace(ThoughtSpace ts) { thoughtSpace_byThread.set(ts); ret ts; }