public static boolean isAdapter(final StateStore stateStore) {
        if (stateStore instanceof KeyValueToTimestampedKeyValueByteStoreAdapter) {
            return true;
        } else if (stateStore instanceof WrappedStateStore) {
            return isAdapter(((WrappedStateStore) stateStore).wrapped());
        } else {
            return false;
        }
    }
a utility interface to facilitate stores' query dispatch logic,
allowing them to generically store query execution logic as the values
in a map.
streams/src/main/java/org/apache/kafka/streams/state/internals/StoreQueryUtils.java