tds/src/main/java/thredds/server/opendap/OpendapSessionAttributeListener.java
public void attributeRemoved(HttpSessionBindingEvent e) {

      if (e.getValue() instanceof GuardedDataset) {
        GuardedDataset gdataset = (GuardedDataset) e.getValue();
        gdataset.close();
        //System.out.printf(" close gdataset %s in session %s %n", gdataset, e.getSession().getId());
        //if (log.isDebugEnabled()) log.debug(" close gdataset " + gdataset + " in session " + e.getSession().getId());
      }
    }
public void attributeRemoved(HttpSessionBindingEvent e) {

      if (e.getValue() instanceof GuardedDataset) {
        GuardedDataset gdataset = (GuardedDataset) e.getValue();
        gdataset.close();
        //System.out.printf(" close gdataset %s in session %s %n", gdataset, e.getSession().getId());
        //if (log.isDebugEnabled()) log.debug(" close gdataset " + gdataset + " in session " + e.getSession().getId());
      }
    }
HttpSessionAttributeListener