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