private String getPipelineName() {
        if (pipelineHolder != null) {
            final PipelineHolder ph = pipelineHolder.get();
            if (ph != null) {
                final DocRef pipeline = ph.getPipeline();
                if (pipeline != null) {
                    return pipeline.getName();
                }
            }
        }
        return null;
    }
Used when XSLT is supplied (for xsl:output)
stroom-pipeline/src/main/java/stroom/pipeline/writer/XMLWriter.java