title: How to pass object across methods using Thread context?
body: <p>I want to pass objects between methods within a thread without using a method signature.</p>
  <p>Example:</p>
  <pre><code>public class Controller {
  
      @GET
      public void requestController() {
  
          // set user data in the controller currentThread
  
      }
  
  }
  
  public class Service {
      
      public void serviceMethod() {
  
          // get user data in the service method from currentThread
  
      }
  
  }
  </code></pre>
  <p>as <code>Controller</code> and <code>Service</code> are in the same thread, I should be able to access the object in <code>Service</code> that was set in the <code>Controller</code>.</p>
  <p><code>MDC</code> does follow the same approach using <code>MDC.put</code> and <code>MDC.get</code> but I am not sure which pattern it uses.</p>