public PullProvider pullQueryResults(NodeInfo source, String query) throws XPathException {
final StaticQueryContext sqc = config.newStaticQueryContext();
final XQueryExpression exp = sqc.compileQuery(query);
final DynamicQueryContext dynamicContext = new DynamicQueryContext(config);
dynamicContext.setContextItem(source);
PullProvider pull = new PullFromIterator(exp.iterator(dynamicContext));
pull = new PullNamespaceReducer(pull);
pull.setPipelineConfiguration(config.makePipelineConfiguration());
return pull;
}