Calling XPathEvaluator.reset() leads to a
NullPointerException. It is fairly obvious why the NPE
is being thrown. It looks as if either config should
not be set to null (if config does not keep state) or
the portions of the config that keeps state should be
reset or a brand new config should be created.
The work-around is to create a new XPathEvaluator