Could you please elaborate on the problem you were facing?

Regardless of the problem, there are better ways to do this that do not involve adding unnecessary performance hits to the application, such as using the Singleton Holder pattern, or initialising this map using a `@WebListener`.