title: Alternative to deprecated AuditReader#getCurrentRevision method
body: <p>I am migrating a java application from Spring Boot 1.5 to Spring Boot 2.2.3 and this involves upgrading Hibernate/Envers to 5.4.10.Final.</p>
  
  <p>The existing code calls AuditReader#getCurrentRevision(Class revisionEntityClass, boolean persist) which is deprecated and the JavaDocs state to use RevisionListener but this does not do the same thing as we need to fetch the revision that <strong>will be</strong> created when the existing transaction commits. The getCurrentRevision method gave us that functionality but the RevisionListener is not invoked until after our code needs the revision number and also the revisionEntity passed to the RevisionListener#newRevision  method does not yet have its id set. RevisionListener seems to be targetted more towards setting additional information on the revision entity rather than obtaining information from it.</p>
  
  <p>How can I obtain the revision that will be created as part of the current transaction?</p>
  
  <p>Thanks</p>