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