if (messageListener != null) {
runtime.setMessageListener(messageListener);
}
InputStreamUriParameterResolver resolver = new InputStreamUriParameterResolver(new XProcURIResolver(runtime));
resolver.addResolver(new ClassPathUriResolver());
runtime.setURIResolver(resolver);
XPipeline pipeline = runtime.load(new Input(pipelineUri));
return new CalabashPipeline(pipeline, runtime, resolver, legacySourceOutput);
} catch (SaxonApiException ex) {
// TODO: Should we log the exception here?