@Override
    public void addCookie(final Cookie cookie) {
        if (cookie != null) {
            // first remove any old cookie that is equivalent
            cookies.remove(cookie.getDomain() + cookie.getName() + cookie.getPath());
            if (!cookie.isExpired(new Date())) {
                cookies.put(cookie.getDomain() + cookie.getName() + cookie.getPath(), cookie);
            }
        }
    }
Adds an {@link Cookie HTTP cookie}, replacing any existing equivalent cookies. If the given
cookie has already expired it will not be added, but existing values will still be removed.

@param cookie the {@link Cookie cookie} to be added

@see #addCookies(HashMap)
ache/src/main/java/achecrawler/crawler/async/fetcher/ConcurrentCookieJar.java