RegistryDiscoveryContext discoveryContext = curatorHelper
.createDiscoveryContext(
discovery);
bind(RegistryDiscoveryContext.class).toInstance(discoveryContext);
RegistryRestResources registryRestResources =
new RegistryRestResources(discoveryContext, registry);
bind(RegistryRestResources.class).toInstance(registryRestResources);
route("/", SliderAMController.class);
route(CONTAINER_STATS, SliderAMController.class, "containerStats");
route(CLUSTER_SPEC, SliderAMController.class, "specification");