code: public static RecordingTransactionBase wrap(TransactionBase txb, Predicate<LogEntry> filter) {
      return new RecordingTransactionBase(txb, filter);
    }
docs: Creates a RecordingTransactionBase using the provided LogEntry filter function and existing
  TransactionBase