public DocRef addIndex(final String name, final Path translationXsltLocation, final OptionalInt maxDocsPerShard) {
        // Try to find an existing one first.
        final List<DocRef> refs = indexStore.list()
                .stream()
                .filter(docRef ->
                        name.equals(docRef.getName()))
                .toList();
        if (refs.size() > 0) {
            return refs.get(0);
        }

        final DocRef indexRef = commonTestScenarioCreator.createIndex(
                name,
                createIndexFields(),
                maxDocsPerShard.orElse(LuceneIndexDoc.DEFAULT_MAX_DOCS_PER_SHARD));

        // Create the indexing pipeline.
        final DocRef pipelineRef = getIndexingPipeline(indexRef, translationXsltLocation);

        final Processor streamProcessor = processorService.find(new ExpressionCriteria(
                        ProcessorExpressionUtil.createPipelineExpression(pipelineRef)))
                .getFirst();
        if (streamProcessor == null) {
            // Setup the stream processor filter.
            final QueryData findStreamQueryData = QueryData.builder()
                    .dataSource(MetaFields.STREAM_STORE_DOC_REF)
                    .expression(ExpressionOperator.builder()
                            .addTextTerm(MetaFields.TYPE, ExpressionTerm.Condition.EQUALS, StreamTypeNames.EVENTS)
                            .build())
                    .build();
            processorFilterService.create(
                    CreateProcessFilterRequest
                            .builder()
                            .pipeline(pipelineRef)
                            .queryData(findStreamQueryData)
                            .priority(1)
                            .build());
        }

        return indexRef;
    }
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