OGM-638 Passing original ORM session to AutoFlushEvent
OGM-638 Removing some dead code