public static <K> Windowed<K> fromStoreKey(final Windowed<Bytes> windowedKey,
                                               final Deserializer<K> deserializer,
                                               final String topic) {
        final K key = deserializer.deserialize(topic, windowedKey.key().get());
        return new Windowed<>(key, windowedKey.window());
    }
Safely construct a time window of the given size,
taking care of bounding endMs to Long.MAX_VALUE if necessary
streams/src/main/java/org/apache/kafka/streams/state/internals/WindowKeySchema.java