InputSource is = new InputSource(entity.getStream());
String base = getHostRef().toString();
is.setSystemId(base + "/" + name);
XdmNode doc = runtime.parse(is);
XPipeline pipeline = runtime.use(doc);
getPipelines().put(id, new PipelineConfiguration(runtime, pipeline, expires));
} catch (Exception e) {
throw new XProcException(e);
}