// initial AuthResponse message
String message = ((Responses.Error)authResponse).message;
if (message.startsWith("java.lang.ArrayIndexOutOfBoundsException: 15"))
message = String.format("Cannot use authenticator %s with protocol version 1, "
+ "only plain text authentication is supported with this protocol version", authenticator);
throw defunct(new AuthenticationException(address, message));
default:
throw defunct(new TransportException(address, String.format("Unexpected %s response message from server to authentication message", authResponse.type)));
}
}