private DocRef getTextConverter(final String name,
                                    final TextConverterType textConverterType,
                                    final Path textConverterLocation) {
        // Try to find an existing one first.
        final List<DocRef> refs = textConverterStore.list().stream()
                .filter(docRef ->
                        name.equals(docRef.getName()))
                .collect(Collectors.toList());
        if (refs != null && refs.size() > 0) {
            return refs.get(0);
        }

        // Get the data to use.
        String data = null;
        if (textConverterLocation != null) {
            data = StreamUtil.fileToString(textConverterLocation);
            assertThat(data)
                    .as("Did not find " + FileUtil.getCanonicalPath(textConverterLocation))
                    .isNotNull();
        }

        // Create a new text converter entity.
        if (data != null) {
//            final DocRef textConverterRef = textConverterStore.createDocument(name);
            final DocRef textConverterRef = createTextConverter(name);
            final TextConverterDoc textConverter = textConverterStore.readDocument(textConverterRef);
            textConverter.setDescription("Description " + name);
            textConverter.setConverterType(textConverterType);
            textConverter.setData(data);
            textConverterStore.writeDocument(textConverter);
            return textConverterRef;
        }

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