streamResolver.addResolver(new ClassPathUriResolver());
for (URIResolver resolver: resolvers) {
streamResolver.addResolver(resolver);
}
runtime.setURIResolver(streamResolver);
XPipeline pipeline = runtime.load(new Input(pipelineUri));
return new CalabashPipeline(pipeline, runtime, streamResolver);
} catch (SaxonApiException ex) {
// TODO: Should we log the exception here?
throw new PipelineException(ex);
}