/**
  * Handles the HttpSessionEvent by publishing a {@link HttpSessionCreationEvent} to the
  * application appContext.
  *
  * @param event HttpSessionEvent passed in by the container
  */
 public void sessionCreated(HttpSessionEvent event) {
   if (null == eventMulticaster) {
     eventMulticaster =
         ContextLoader.getContext(event.getSession().getServletContext())
             .getBean(EventMulticaster.class);
     Assert.notNull(eventMulticaster);
   }
   eventMulticaster.multicast(new HttpSessionCreationEvent(event.getSession()));
 }
 /**
  * Handles the HttpSessionEvent by publishing a {@link HttpSessionDestroyedEvent} to the
  * application appContext.
  *
  * @param event The HttpSessionEvent pass in by the container
  */
 public void sessionDestroyed(HttpSessionEvent event) {
   if (null != eventMulticaster) {
     eventMulticaster.multicast(new HttpSessionDestroyedEvent(event.getSession()));
   }
 }