how to achieve this using AtomicBoolean?
<p>How to make sure the initialize() method is called only once? Below is the thread unsafe version which I would like to refactor to use AtomicBoolean. <em>All I want is that initialize() is only called once</em></p>

<pre><code>if (!initialized) 
{
   initialize();
   initialized = true;
}
</code></pre>
