CuratorEntry entry = CuratorEntry.mustGetEntry(connectionManager, projection);
@SuppressWarnings("unchecked")
ServiceDiscovery<byte[]> serviceDiscovery = CuratorEntry.mustGetThing(entry, discoveryProjection.id, ServiceDiscovery.class);
final ServiceProvider<byte[]> serviceProvider = serviceDiscovery
.serviceProviderBuilder()
.downInstancePolicy(new DownInstancePolicy(downTimeoutMs, TimeUnit.MILLISECONDS, downErrorThreshold))
.providerStrategy(strategy)
.serviceName(serviceName)
.build();
try
{