public boolean clearExpired(final Date date) {
        if (date == null) {
            return false;
        }
        boolean removed = false;
        for (Iterator<Cookie> it = cookies.iterator(); it.hasNext();) {
            if (it.next().isExpired(date)) {
                it.remove();
                removed = true;
            }
        }
        return removed;
    }
Removes all of {@link Cookie cookies} in this HTTP state that have
expired by the specified {@link java.util.Date date}.

@return true if any cookies were purged.

@see Cookie#isExpired(Date)
crawler-commons/src/main/java/achecrawler/crawler/crawlercommons/fetcher/http/LocalCookieStore.java