private Map<URI, List<SerializableCookie>> exportCookies() {
   Map<URI, List<SerializableCookie>> preserializedCookies =
       new HashMap<URI, List<SerializableCookie>>();
   for (URI uri : store.getURIs()) {
     preserializedCookies.put(uri, SerializableHttpCookieAdapter.serialize(store.get(uri)));
   }
   return preserializedCookies;
 }
 private void importCookies(Map<URI, List<SerializableCookie>> cookiesToRestore) {
   Map<URI, List<HttpCookie>> restoredCookies = new HashMap<URI, List<HttpCookie>>();
   if (null != cookiesToRestore) {
     for (URI uri : cookiesToRestore.keySet()) {
       restoredCookies.put(
           uri, SerializableHttpCookieAdapter.deserialize(cookiesToRestore.get(uri)));
     }
     for (URI uri : restoredCookies.keySet()) {
       for (HttpCookie cookie : restoredCookies.get(uri)) {
         store.add(uri, cookie);
       }
     }
   }
 }