Tomcat nulls out static fields on undeploying web app.
This will force the class being reloaded/reinitialized by ClassLoader which causing the static block to be invoked. The CMISStore static block triggered a network call which is only valid for an alive portal. So on shutdown this precondition does not stand. This will cause tomcat process waiting there forever.
This change uses class lazy initializing trick to avoid running the static block while tomcat nulling out static fields.