public DocRef ensurePath(final DocRef parentFolder, final String path) {
        Objects.requireNonNull(path);

        final int slashIdx = path.indexOf("/");
        final String firstChild;
        final String childDescendants;
        if (slashIdx == -1) {
            firstChild = path;
            childDescendants = null;
        } else {
            firstChild = path.substring(0, slashIdx);
            childDescendants = path.substring(slashIdx + 1);
        }
        final ExplorerNode parentNode = explorerNodeService.getNode(parentFolder)
                .orElseThrow(() -> new RuntimeException("Parent node not found " + parentFolder));

        final DocRef childFolder = explorerNodeService.getNodesByName(parentNode, firstChild)
                .stream()
                .findFirst()
                .map(ExplorerNode::getDocRef)
                .orElseGet(() -> {
                    final DocRef childDocRef = new DocRef("Folder", UUID.randomUUID().toString(), firstChild);
                    LOGGER.info("Creating folder {} in {}", childDocRef.getName(), parentFolder.getName());
                    explorerNodeService.createNode(
                            childDocRef,
                            parentNode.getDocRef(),
                            PermissionInheritance.DESTINATION);
                    return childDocRef;
                });

        if (childDescendants != null) {
            return ensurePath(childFolder, childDescendants);
        } else {
            return childFolder;
        }
    }
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