if (LOG.isInfoEnabled()) {
LOG.info(String.format("creating new "
+ "connection for : '%s'", connectionId));
}
Endpoint e = contextMap.get(contextPath);
zk = new ZooKeeper(e.getHostPort(), 30000, new MyWatcher(
connectionId));
for (Map.Entry<String, String> p : e.getZooKeeperAuthInfo().entrySet()) {
zk.addAuthInfo("digest", String.format("%s:%s", p.getKey(),
p.getValue()).getBytes());
}
zkMap.put(connectionId, zk);