public static <K, V> VersionedKeyQuery<K, V> withKey(final K key) {
        Objects.requireNonNull(key, "key cannot be null.");
        return new VersionedKeyQuery<>(key, Optional.empty());
    }
Creates a query that will retrieve the record from a versioned state store identified by {@code key} if it exists
(or {@code null} otherwise).
<p>
While the query by default returns the latest value of the specified {@code key}, setting
the {@code asOfTimestamp} (by calling the {@link #asOf(Instant)} method), makes the query
to return the value associated to the specified {@code asOfTimestamp}.

@param key The key to retrieve
@param <K> The type of the key
@param <V> The type of the value that will be retrieved
@throws NullPointerException if {@code key} is null
streams/src/main/java/org/apache/kafka/streams/query/VersionedKeyQuery.java