public static String convertToHostsOnlyList(String quorum) throws BadConfigException { List<HostAndPort> hostAndPorts = splitToHostsAndPortsStrictly(quorum); return ZookeeperUtils.buildHostsOnlyList(hostAndPorts); }