this.uri = URI.create(String.format("http://%s:%d", hostname, port));
this.sslPort = DEFAULT_SSL_PORT;
AuthenticationClient authenticationClient = new BasicAuthenticationClient();
authenticationClient.setConnectionInfo(hostname, port, DEFAULT_SSL);
this.clientConfig = new ClientConfig(hostname, port,
new HttpRequestConfig(15000, 15000, verifySSLCert),
new HttpRequestConfig(0, 0, verifySSLCert),
authenticationClient);
this.version = tryGetVersion();
this.hostnameChangeListeners = Lists.newArrayList();
}