private String getParentPath(final List<ExplorerNode> parents) {
        if (parents != null && !parents.isEmpty()) {
            String parentPath = parents.stream()
                    .map(ExplorerNode::getName)
                    .collect(Collectors.joining("/"));
            int index = parentPath.indexOf("System");
            if (index == 0) {
                parentPath = parentPath.substring(index + "System".length());
            }
            index = parentPath.indexOf("/");
            if (index == 0) {
                parentPath = parentPath.substring(1);
            }
            return parentPath;
        }
        return "";
    }
Prunes the node path for GitRepo exports. Removes everything in the rootPath
from the nodePath if the rootPath matches the start of the nodePath.
@param rootPath Can be null, in which case this function just returns nodePath.
                Otherwise, the list of items to prune from the start of nodePath.
@param nodePath The node path to prune.
@return The pruned nodePath.
stroom-importexport/stroom-importexport-impl/src/main/java/stroom/importexport/impl/ImportExportSerializerImpl.java