Have hibernate clear session at the time of a flush