synchronized (container.lock)
{
// Unregister all web apps
for (WebApp webApp : container.webAppMap.values())
{
WebAppLifeCycleEvent event = new WebAppLifeCycleEvent(webApp, WebAppLifeCycleEvent.REMOVED);
container.fireEvent(event);
}
//
container.webAppMap.clear();