private static Map<String, List<Cookie>> cleanCookies(Map<String, List<Cookie>> cookies) {
        Map<String, List<Cookie>> validCookiesMap = new HashMap<>();
        for (String url : cookies.keySet()) {
            List<Cookie> validCookies = new ArrayList<>();
            for (Cookie c : cookies.get(url)) {
                String cookieDomain = c.getDomain();
                if (cookieDomain != null) {
                    if (cookieDomain.startsWith(".")) {
                        c.setDomain(cookieDomain.replaceFirst(".", ""));
                    }
                    validCookies.add(c);
                }
            }
            validCookiesMap.put(url, validCookies);
        }
        return validCookiesMap;
    }
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