.withMaxServiceInstanceIdleTime(5, TimeUnit.MINUTES)
.build();
// The service is partitioned, but partition filtering is configured by the ServiceFactory in this case
// when the builder calls its configure() method.
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))