code: public static ContextStack getImmutableStack() {
          final ContextStack result = contextStack.getImmutableStackOrNull();
          return result == null ? EMPTY_STACK : result;
      }
docs: Gets an immutable copy of this current thread's context stack.
  
  @return an immutable copy of the ThreadContext stack.