private void removeNode(final Integer id) {
        if (isRemoveReferencedNodes()) {
            JooqUtil.context(explorerDbConnProvider, context -> context
                    .deleteFrom(n)
                    .where(n.ID.eq(id))
                    .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