Added support for LoadClassMetadata event
Added preFlush event