@Override
    public boolean clearExpired(final Date date) {
        if (date == null) {
            return false;
        }
        boolean removed = false;
        Iterator<Cookie> it = cookies.values().iterator();
        while (it.hasNext()) {
            Cookie cooky = it.next();
            if (cooky.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)
ache/src/main/java/achecrawler/crawler/async/fetcher/ConcurrentCookieJar.java