@Override
    default KeyValueIterator<Windowed<K>, AGG> findSessions(final K key,
                                                            final Instant earliestSessionEndTime,
                                                            final Instant latestSessionStartTime) {
        return findSessions(
            key,
            ApiUtils.validateMillisecondInstant(earliestSessionEndTime,
                prepareMillisCheckFailMsgPrefix(earliestSessionEndTime, "earliestSessionEndTime")),
            ApiUtils.validateMillisecondInstant(latestSessionStartTime,
                prepareMillisCheckFailMsgPrefix(latestSessionStartTime, "latestSessionStartTime")));
    }
Return all the session window entries that ends between the specified range (both ends are inclusive).
This function would be used to retrieve all closed and immutable windows.

@param earliestSessionEndTime earliest session end time to search from, inclusive
@param latestSessionEndTime latest session end time to search to, inclusive
streams/src/main/java/org/apache/kafka/streams/state/SessionStore.java