code: private ThreadContext getOrCreateContext(Channel channel) {
      ThreadContext context = ThreadContext.currentContext();
      if (context != null) {
        return context;
      }
      return new SingleThreadContext(Thread.currentThread(), channel.eventLoop(), this.context.serializer().clone());
    }
docs: Returns the current execution context or creates one.