if (t instanceof InvalidCredentialsException) {
throw (InvalidCredentialsException) t;
} else if (t instanceof ServiceUnavailableException) {
throw (ServiceUnavailableException) t;
} else if (t.getCause() instanceof SSLHandshakeException) {
throw new SSLHandshakeException(
"Unable to initialize. An untrusted SSL Certificate was received from "
+ elastiCenterAddress
+ ". Please verify your truststore or configure ElastiCenterClient to skip the SSL Validation. ");
} else if (t.getCause() instanceof ConnectException) {
throw new ServiceUnavailableException(