// remember the DocWrapper for the given root so we can reuse it later
if (docWrappers != null) docWrappers.put(root, docWrapper);
}
return docWrapper.wrap(node);
}
/** Setup variables of context, if any */
private void setupDynamicContext(
Node contextNode, DynamicQueryContext dynamicContext, Map variables)