@ Override public void run ( ) { try { threadContext . activate ( ) ; // run the original thread runnable . run ( ) ; } finally { threadContext . invalidate ( ) ; threadContext . deactivate ( ) ; } }
Set up the ThreadContext and delegate .