* In this method, we: 1) first get the portal instance name for which the session is created. 2) Put the portal instance in
* the Portal ThreadLocal 3) Broadcast the CONTEXT_INITIALIZED event 4) Flush the {@link ThreadLocal} for the
* PortalContainer
*/
public void contextInitialized(final ServletContextEvent event) {
final PortalContainerPostInitTask task = new PortalContainerPostInitTask() {
public void execute(ServletContext scontext, PortalContainer portalContainer) {
try {
broadcast(portalContainer, CONTEXT_INITIALIZED, event);
} catch (Exception ex) {
log.error("Error on contextInitialized", ex);