docs: private void configureEvent(CacheEntryListenerInvocation listenerInvocation,
                                 EventImpl<K, V> e, K key, V value, Metadata metadata, boolean pre, InvocationContext ctx,
                                 FlagAffectedCommand command, V previousValue, Metadata previousMetadata) {
        key = convertKey(listenerInvocation, key);
        value = convertValue(listenerInvocation, value);
        previousValue = convertValue(listenerInvocation, previousValue);
  
        e.setOriginLocal(ctx.isOriginLocal());
        e.setValue(pre ? previousValue : value);
        e.setPre(pre);
        e.setOldValue(previousValue);
        e.setOldMetadata(previousMetadata);
        e.setMetadata(metadata);
        if (command != null && command.hasAnyFlag(FlagBitSets.COMMAND_RETRY)) {
           e.setCommandRetried(true);
        }
        e.setKey(key);
        setTx(ctx, e);
     }