.withId(host + ":" + port)
.withPayload(getJson(env).writeValueAsString(payload))
.build();
final CuratorFramework curator = newCurator(config.getZooKeeperConfiguration(), env);
env.manage(new Managed() {
ZooKeeperServiceRegistry registry = new ZooKeeperServiceRegistry(curator);
@Override
public void start() throws Exception {
registry.register(endPoint);