private DocRef getPipeline(final String name, final Path pathOfPipelineToCopy) {
        // Try to find an existing one first.
        return getPipeline(name)
                .orElseGet(() -> {
                    final DocRef docRef = createPipeline(name);
                    final String data = StreamUtil.fileToString(pathOfPipelineToCopy);
                    LOGGER.info("Creating pipeline {} based on file {}", name, pathOfPipelineToCopy);
                    return PipelineTestUtil.createTestPipeline(
                            pipelineStore,
                            docRef,
                            name,
                            "Description " + name,
                            data);
                });
    }
Adds event data to a stream store.

@param feedName                         The feed name to use.
@param translationTextConverterType     Type of text converter
@param translationTextConverterLocation The Text Converter location
@param translationXsltLocation          The XSLT location
@param dataLocation                     The event data location.
@param referenceFeeds                   The reference feeds used.
@return An event feed definition.
@throws IOException Thrown if files not found.
stroom-app/src/test/java/stroom/test/StoreCreationTool.java