JerseyClientConfiguration httpClientConfiguration = config.getHttpClientConfiguration();
MetricRegistry metrics = new MetricRegistry();
DictionaryServiceFactory serviceFactory = new DictionaryServiceFactory(httpClientConfiguration, metrics);
DictionaryService service = ServicePoolBuilder.create(DictionaryService.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