list = config.getElementsByTagName("XmlSearchService");
if (list.getLength() > 0) {
for (int i = 0; i < list.getLength(); i++) {
Element clientConfig = (Element)list.item(i);
System.out.println(clientConfig);
ServiceFinder finder = new ServiceFinder(_engines, "XmlSearchService");
// finder.configure(clientConfig);
new Thread(finder).start();
while (finder.getNumberOfServices() == 0)
Thread.sleep(500);
}
}
setupQueryProcessor(_engines);
}