public void sessionDestroyed(HttpSessionEvent se)
{
HttpSession session = se.getSession();
try {
SessionContextContainer candiContainer
= (SessionContextContainer) session.getAttribute("resin.candi.scope");
if (candiContainer != null)
candiContainer.close();
} catch (Exception e) {
log.log(Level.FINE, e.toString(), e);
}
}