* overwrite existing cookie with new value
* @param cookie a cookie
*/
public void add(Cookie cookie)
{
Key key = Cookies.keyOf(cookie);
Cookie copyOfCookie = Cookies.copyOf(cookie);
if (Cookies.isExpired(cookie))
{
expiredCookies.put(key, copyOfCookie);
cookies.remove(key);