// load data processor factories
XPath xpath = XPathFactory.newInstance().newXPath();
// add local data processor factory by default
cfg.getDataProcessorFactories().add(new LocalDataProcessorFactory());
// get root of webharvester configuration
Node ndWebHarvester = (Node) xpath.evaluate("webharvester", root, XPathConstants.NODE);
if (ndWebHarvester!=null) {
// create and initialize data processor for each netry in configuration