private void handleHandshakeAuthenticationException(Exception ex) { if (ex instanceof AuthenticationRequiredException) { AuthenticationRequiredException noauth = (AuthenticationRequiredException) ex; String exStr = noauth.getLocalizedMessage(); if (noauth.getCause() != null) { exStr += " : " + noauth.getCause().getLocalizedMessage();