JerseyClientConfiguration httpClientConfiguration = config.getHttpClientConfiguration();
MetricRegistry metrics = new MetricRegistry();
CalculatorServiceFactory serviceFactory = new CalculatorServiceFactory(httpClientConfiguration, metrics);
CalculatorService service = ServicePoolBuilder.create(CalculatorService.class)
.withServiceFactory(serviceFactory)
.withHostDiscovery(new ZooKeeperHostDiscovery(curator, serviceFactory.getServiceName(), metrics))
.withMetricRegistry(metrics)
.withCachingPolicy(cachingPolicy)
.buildProxy(new ExponentialBackoffRetry(5, 50, 1000, TimeUnit.MILLISECONDS));
// If using Yammer Metrics or running in Dropwizard (which includes Yammer Metrics), you may want a health