Avoid using the event listeners to lookup the SearchFactory from Hibernate ORM code