private void createStore(final Path data, final Path reference, final Path xslt) {
        try {
            // Add imported XSLT.
            final DocRef xsltRef = xsltStore.createDocument("imported.xsl");
            final XsltDoc xsltDoc = xsltStore.readDocument(xsltRef);
            xsltDoc.setDescription("Imported XSLT");
            xsltDoc.setData(StreamUtil.fileToString(IMPORTED_XSLT));
            xsltStore.writeDocument(xsltDoc);

            DocRef hostNameToIP = null;

            for (int i = 0; i < NO_OF_REFERENCE_FILES; i++) {
                // Setup the feed definitions.
                hostNameToIP = storeCreationTool.addReferenceData(REFERENCE_FEED_NAME, TextConverterType.DATA_SPLITTER,
                        FORMAT_DEFINITION, XSLT_HOST_NAME_TO_IP, reference);
            }

            final Set<DocRef> referenceFeeds = new HashSet<>();
            referenceFeeds.add(hostNameToIP);

            for (int i = 0; i < NO_OF_EVENT_FILES; i++) {
                storeCreationTool.addEventData(
                        EVENT_FEED_NAME,
                        null,
                        null,
                        xslt,
                        data,
                        referenceFeeds);
            }

            // Force creation of stream tasks.
            processorTaskTestHelper.createAndQueueTasks();

        } catch (final IOException e) {
            e.printStackTrace();
            throw ProcessException.wrap(e);
        }
    }
Creates a data store duplicating the file found in data.

@param data The path of the data to replicate.
stroom-app/src/test/java/stroom/pipeline/task/TestTranslationTaskFactory.java