if (!(cookie instanceof SslListenCookie)) {
throw new IllegalArgumentException(
"Cookie must be of type SslListenCookie: " + cookie);
}
SslListenCookie sslListenCookie = ((SslListenCookie) cookie);
ListenEndpoint cookieListenEndpoint
= sslListenCookie.getListenEndpoint();
if (!listenEndpoint.equals(cookieListenEndpoint)) {
throw new IllegalArgumentException(
"Cookie has wrong listen endpoint: found " +