code: private static <T> ThreadContext<T> getCurrentThreadContext(ThreadContext<T> threadContext)
      {
          return ((ThreadContextImpl<T>) threadContext).get();
      }
docs: Obtains a context object optimized for accessing the current thread.