private String resolvePath(final String path, final DocRef importRootDocRef) {
        String result = path;
        if (importRootDocRef != null) {
            final Optional<ExplorerNode> optImportRootNode =
                    explorerNodeService.getNode(importRootDocRef);
            if (optImportRootNode.isPresent()) {
                final ExplorerNode importRootNode = optImportRootNode.get();
                final List<ExplorerNode> nodePathToImportRootDocRef = explorerNodeService.getPath(importRootDocRef);
                nodePathToImportRootDocRef.add(importRootNode);
                // Remove root node.

                final ExplorerNode systemRootNode = explorerNodeService.getRoot();
                if (nodePathToImportRootDocRef.getFirst().equals(systemRootNode)) {
                    nodePathToImportRootDocRef.removeFirst();
                }
                if (!nodePathToImportRootDocRef.isEmpty()) {
                    final String rootPath = getParentPath(nodePathToImportRootDocRef);
                    result = createPath(rootPath, path);
                }
            }
        }
        return result;
    }
Returns the path in the Explorer Tree.
It will return either 'path' (the first parameter), or the path resolved
to the 'importSettings' Root DocRef if that exists.
@param path The path to the item, deduced from the import data.
@param importRootDocRef The setting from ImportSettings the holds the
                        optional RootDocRef - i.e. where the stuff on
                        disk should be imported to. Will be null if
                        not set.
@return Returns path if the RootDocRef hasn't been set or cannot be
found in the Explorer Tree. Otherwise, returns the path to the
RootDocRef/path.
stroom-importexport/stroom-importexport-impl/src/main/java/stroom/importexport/impl/ImportExportSerializerImpl.java