public static Backend wrap(Backend backend, Consumer<Class<?>> callback) {
    return new WithSessionCallback(backend, callback);
  }
Backend wrapper which notifies a callback before opening a session.
Useful in tests when one wants to auto-create collection / index / table before running tests.
criteria/common/test/org/immutables/criteria/backend/WithSessionCallback.java