}
public RegistryDiscoveryContext createDiscoveryContext(
ServiceDiscovery<ServiceInstanceData> discovery) {
Preconditions.checkNotNull(discovery);
return new RegistryDiscoveryContext(discovery,
new RandomStrategy<ServiceInstanceData>(),
RegistryServiceConstants.INSTANCE_REFRESH_MS,
ServiceInstanceData.class);
}