private static void updateCookies(SimpleHttpFetcher baseFetcher, Map<String, List<Cookie>> validCookies) {
        final CookieStoreProvider cookieStoreProvider = baseFetcher.getCookieStoreProvider();
        final CookieStore cookieStore = cookieStoreProvider.get();
        Map<String, List<org.apache.http.cookie.Cookie>> apacheCookies = asApacheCookies(validCookies);
        for (List<org.apache.http.cookie.Cookie> listOfCookies : apacheCookies.values()) {
            for (org.apache.http.cookie.Cookie cookie : listOfCookies) {
                cookieStore.addCookie(cookie);
            }
        }
    }
Adds cookies to the respective fetcher

@param cookies
@param baseFetcher
@throws NullPointerException if cookie is null
ache/src/main/java/achecrawler/crawler/cookies/CookieUtils.java