* @throws net.sf.saxon.s9api.SaxonApiException
* if the Receiver cannot be created
*/
public Receiver getReceiver(Configuration config) throws SaxonApiException {
TreeModel model = treeModel;
if (model == null) {
model = TreeModel.getTreeModel(config.getTreeModel());
}
builder = model.makeBuilder();
if (baseURI != null) {
builder.setBaseURI(baseURI.toString());
}
builder.setPipelineConfiguration(config.makePipelineConfiguration());
return builder;