// ensuring to be singleton across JVM
private static final InMemoryDiscoveryService IN_MEMORY_DISCOVERY_SERVICE = new InMemoryDiscoveryService();
@Override
protected void configure() {
InMemoryDiscoveryService discovery = IN_MEMORY_DISCOVERY_SERVICE;
bind(DiscoveryService.class).toInstance(discovery);
bind(DiscoveryServiceClient.class).toInstance(discovery);
}