code: protected void withTransaction(Consumer<Connection> consumer) {
          getWithTransaction(connection -> {
              consumer.accept(connection);
              return null;
          });
      }
docs: Wraps {@link #getWithTransaction(TransactionalFunction)} with no return value.
  <p>
  Generally this is used to wrap multiple {@link #execute(Connection, String, ExecuteFunction)} or
  {@link #query(Connection, String, QueryFunction)} invocations that produce no expected return value.
  
  @param consumer The {@link Consumer} callback to pass a transactional {@link Connection} to.
  @throws ApplicationException If any errors occur.
  @see #getWithTransaction(TransactionalFunction)