@Override
    public void afterPropertiesSet() throws Exception {
        client = CuratorFrameworkFactory.newClient("localhost:2181", new ExponentialBackoffRetry(1000, 3));
        client.start();
        babyduncanPathCache = new PathChildrenCache(client, "/babyduncan", true);
        try {
            babyduncanPathCache.start();
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
    }