}
public XMLStreamReader getSequenceAsStream() throws XQException {
PullFromIterator provider = new PullFromIterator(iterator);
provider.setPipelineConfiguration(connection.getConfiguration().makePipelineConfiguration());
return new PullToStax(provider);
}