docs: protected synchronized void updateCookieCache(ByteArray cookieBytes, String cookieByteString) {
          if (cookieByteStringCache.size() > MAX_COOKIE_STRING_ENTRIES)
              cookieByteStringCache.clear();
          if (cookieByteString != null)
              cookieByteStringCache.put(cookieBytes, cookieByteString);
      }