final String password) throws Exception {// http://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html
final HttpClientConfig clientConfig1 = new HttpClientConfig.Builder(serverUri)
.multiThreaded(true).build();
// Construct a new Jest client according to configuration via factory
final JestClientFactory factory1 = new JestClientFactory();
factory1.setHttpClientConfig(clientConfig1);
final JestHttpClient c = (JestHttpClient) factory1.getObject();
final HttpClientBuilder hcb = HttpClients.custom();
if (serverUri.startsWith("https")) {