// Internal helper classes
private class ConnectionWatcher implements Watcher {
@Override
public void process(final WatchedEvent event) {
watchExecutor.execute(new ErrorLoggingRunnable(new Runnable() {
@Override
public void run() {
try {
initLatch.await(); // Wait until we have been fully initialized
} catch (InterruptedException e) {