if (props.containsKey("zk.instances")) {
List<String> zooKeeperInstances = new ArrayList<String>(Arrays.asList(props.getProperty("zk.instances").split("\\|")));
for (String zkInstance : zooKeeperInstances) {
String zkUrl = props.getProperty("zk." + zkInstance + ".url");
String blurConnection = props.getProperty("blur." + zkInstance + ".url");
new Thread(new ZookeeperCollector(zkUrl, zkInstance, blurConnection, new ZookeeperDatabaseConnection(jdbc)), "Zookeeper - "
+ zkInstance).start();
}
}
}