no, the code I added sets zk.client.connect to environment only in case of single node profile. In other case, it doesn't set. I thought of having a StringUtils.hasText() in this class is better than making DistributedZooKeeperConnectionConfiguration environment aware and in turn setting zk.client.connect dynamically.