private DocRef getReferencePipeline(final String feedName,
                                        final TextConverterType textConverterType,
                                        final Path textConverterLocation,
                                        final Path xsltLocation) {
        // Setup the pipeline.
//        final String data = StreamUtil.fileToString(referenceDataPipeline);
//        final DocRef pipelineRef = getPipeline(feedName, data);
//        final PipelineDoc pipelineDoc = pipelineStore.readDocument(pipelineRef);

        final Tuple2<DocRef, PipelineDoc> pipelineRefAndDoc = duplicatePipeline(
                new DocRef(PipelineDoc.TYPE, REFERENCE_DATA_PIPELINE_UUID),
                feedName);
        final PipelineDoc pipelineDoc = pipelineRefAndDoc._2();

        // Setup the text converter.
        final DocRef textConverterRef = getTextConverter(feedName, textConverterType, textConverterLocation);
        if (textConverterRef != null) {
            pipelineDoc.getPipelineData().addProperty(
                    PipelineDataUtil.createProperty(CombinedParser.DEFAULT_NAME, "textConverter", textConverterRef));
        }
        // Setup the xslt.
        final DocRef xslt = getXSLT(feedName, xsltLocation);
        pipelineDoc.getPipelineData()
                .addProperty(PipelineDataUtil.createProperty("translationFilter", "xslt", xslt));
        pipelineDoc.getPipelineData()
                .addProperty(PipelineDataUtil.createProperty(
                        "storeAppender",
                        "feed",
                        new DocRef(null, null, feedName)));
        pipelineDoc.getPipelineData()
                .addProperty(PipelineDataUtil.createProperty(
                        "storeAppender",
                        "streamType",
                        StreamTypeNames.REFERENCE));
        pipelineStore.writeDocument(pipelineDoc);
        return pipelineRefAndDoc._1();
    }
Adds reference data to a stream store.

@param feedName              The feed name to use.
@param textConverterType     Type of text converter
@param textConverterLocation The Text Converter location
@param xsltLocation          The XSLT location
@param dataLocation          The reference data location.
@return A reference feed definition.
stroom-app/src/test/java/stroom/test/StoreCreationTool.java