/** This method retains both ohOldValue and ohNewValue */ @Retained(OffHeapIdentifier.TEST_OFF_HEAP_REGION_BASE_LISTENER) private void setEventData(EntryEvent e) { close(); EntryEventImpl event = (EntryEventImpl) e; this.ohOldValue = event.getOffHeapOldValue(); this.ohNewValue = event.getOffHeapNewValue(); }