private void removePath(final ExplorerTreePath path) {
        JooqUtil.context(explorerDbConnProvider, context -> context
                .deleteFrom(p)
                .where(p.ANCESTOR.eq(path.getAncestor()))
                .and(p.DESCENDANT.eq(path.getDescendant()))
                .execute());
    }
Get the root node containing a particular node, or the node itself if it is a root node.
stroom-explorer/stroom-explorer-impl-db/src/main/java/stroom/explorer/impl/db/ExplorerTreeDaoImpl.java