What about moving the initial connection code into ContainerMetadataRegisteringZooKeeperConnectionListener?