title: Is there an equivalent way to use InheritableThreadLocal in Quarkus?
body: <p>I get an error when I try to compile my application in native mode. The problem seems to be this definition of a InheritableThreadLocal variable:</p>
  <pre><code>class utilityClass {
    ....
    public static InheritableThreadLocal&lt;Locale&gt; requestLocale = new InheritableThreadLocal&lt;&gt;();
    ...
  }
  
  @Path(&quot;/service&quot;)
  public class ServiceResource {
  
    @GET
    @Path (&quot;/print&quot;)
    public Response print() {
      .....
      SmeupFormatUtility.requestLocale.set(locale);
      .....
    }
  }
  
  </code></pre>
  <p><em>Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved field during parsing: requestLocale. To diagnose the issue you can use the --allow-incomplete-classpath option. The missing field is then reported at run time when it is accessed the first time.
  Detailed message:
  Trace:
  at parsing Smeup.smeui.uig53.service.ServiceResource.print(ServiceResource.java:187)
  ....</em></p>
  <p>Why I can't use InheritableThreadLocal?
  Is there an equivalent way to do it in Quarkus?</p>