List logs = CurrentDetails.getCreationEvent().collectFromLogs( null );
List logs = CurrentDetails.getCreationEvent().collectLogs( null );
    private void afterSave()    {        // Save all that and go back to AUTO flush.        getHibernateTemplate().flush(); // TODO performance?        currentSession().setFlushMode(FlushMode.AUTO);                // Let's save the event again using a temporary event.        Event currentEvent = CurrentDetails.getCreationEvent();        EventType afterSave = new EventType();        afterSave.setValue( "afterSave" );        CurrentDetails.newEvent( afterSave );        getHibernateTemplate().saveOrUpdate( currentEvent );        // Checks.        List logs = CurrentDetails.getCreationEvent().collectFromLogs( null );        if (logs.size() > 0)            log.error("New logs created on update.afterSave:\n"+logs);        // FIXME we shouldn't be updating experimenter etc. here.                // Return the previous event.        CurrentDetails.setCreationEvent( currentEvent );                // Cleanup        filter = null;    }