title: i am setting value of threadlocal in one class can i access the value in another class
body: <p>in the below code i am storing temporary threadlocal values in a threadlocal class.and set the value into another class..</p>
  
  <pre><code>List&lt;String&gt; spaces=new ArrayList&lt;String&gt;();
  spaces.add(spaceKey);
  ThreadLocal&lt;List&lt;String&gt;&gt; threadLocal=new ThreadLocal&lt;List&lt;String&gt;&gt;();
  threadLocal.set(spaces);  
  setShardHolder(threadLocal);
  </code></pre>
  
  <p>i have getters and setters in another class</p>
  
  <pre><code>private ThreadLocal&lt;List&lt;String&gt;&gt; shardHolder;
  public ThreadLocal&lt;List&lt;String&gt;&gt; getShardHolder() {
  return shardHolder;
  }
  public void setShardHolder(ThreadLocal&lt;List&lt;String&gt;&gt; shardHolder) {
  this.shardHolder = shardHolder;
  }
  </code></pre>
  
  <p>i am not able to access the values using the getter</p>