Builder b = new TinyBuilder();
PipelineConfiguration pipe = config.makePipelineConfiguration();
b.setPipelineConfiguration(pipe);
new Sender(pipe).send((Source)value, b);
NodeInfo node = b.getCurrentRoot();
b.reset();
return node;
} else if (value instanceof XMLStreamReader) {
// Saxon extension to the XQJ specification
StaxToEventBridge bridge = new StaxToEventBridge();
bridge.setXMLStreamReader((XMLStreamReader)value);