} else {
origin = evaluator.getConfiguration().buildDocument(source);
}
XPathDynamicContext dynamicContext = createDynamicContext(origin);
SequenceIterator iter = iterate(dynamicContext);
SequenceExtent extent = new SequenceExtent(iter);
//List result = (List)extent.convertToJava(List.class, dynamicContext.getXPathContextObject());
List result = (List)PJConverter.ToCollection.INSTANCE.convert(
extent, List.class, dynamicContext.getXPathContextObject());
if (result == null) {
result = Collections.EMPTY_LIST;