code: protected synchronized void updateCookieCache(ByteArray cookieBytes, String cookieByteString) {
          if (cookieByteStringCache.size() > MAX_COOKIE_STRING_ENTRIES)
              cookieByteStringCache.clear();
          if (cookieByteString != null)
              cookieByteStringCache.put(cookieBytes, cookieByteString);
      }
docs: Perform some cookie cache maintenance. If the cookie cache has grown too
  large, clear it. Otherwise, store the cookieByteString into the cache
  based on the cookieBytes.
  
  @param cookieBytes
  @param cookieByteString