Update CookieFactory.java