public static boolean isTimestamped(final StateStore stateStore) {
        if (stateStore instanceof TimestampedBytesStore) {
            return true;
        } else if (stateStore instanceof WrappedStateStore) {
            return isTimestamped(((WrappedStateStore) stateStore).wrapped());
        } else {
            return false;
        }
    }
A storage engine wrapper for utilities like logging, caching, and metering.
streams/src/main/java/org/apache/kafka/streams/state/internals/WrappedStateStore.java