cfg.getLuceneConfig().setParserProxies(infos.createParserProxies());
NodeList ndObservers = (NodeList) xpath.evaluate("observer", ndLucene, XPathConstants.NODESET);
for (Node ndObserver: new NodeListAdapter(ndObservers)) {
LuceneIndexObserverInfo info = new LuceneIndexObserverInfo();
info.setClassName(Val.chkStr(xpath.evaluate("@className", ndObserver)));
NodeList ndListProps = (NodeList) xpath.evaluate("attribute", ndObserver, XPathConstants.NODESET);
for (Node ndAttribute: new NodeListAdapter(ndListProps)) {
String key = xpath.evaluate("@key", ndAttribute);
String value = xpath.evaluate("@value", ndAttribute);
info.getAttributes().set(key, value);
}
LuceneIndexObserver observer = info.createObserver();
if (observer!=null) {
cfg.getLuceneConfig().getObservers().add(observer);
}
}