LPS-52026 Create hibernate listener to clear the persistence context on flush
LPS-52026 Register listener in hibernate configuration
LPS-52026 Avoid clearing the cache needlessly
LPS-52026 Simplify, do we want this available for anything else?