throws IOException {
// Only service requests initiated by GData services with cookie
// handling enabled.
GoogleService service = activeService.get();
if (service != null && service.handlesCookies()) {
List<String> setCookieList = responseHeaders.get("Set-Cookie");
if (setCookieList != null && setCookieList.size() > 0) {
for (String cookieValue : setCookieList) {
GoogleCookie cookie = new GoogleCookie(uri, cookieValue);
service.addCookie(cookie);