public static void dumpTree(CNode root, String indent) {
        StringBuilder sb = new StringBuilder(indent + root.getName());
        if (root instanceof LeafCNode leaf && leaf.getDefaultValue() != null) {
            sb.append(" = ").append(((LeafCNode) root).getDefaultValue().getValue());
        }
        System.out.println(sb);
        if (!root.getComment().isEmpty()) {
            String comment = root.getComment();
            if (comment.contains("\n")) {
                comment = comment.substring(0, comment.indexOf("\n")) + "...";
            }
            if (comment.length() > 60) {
                comment = comment.substring(0, 57) + "...";
            }
            System.out.println(indent + "    comment: " + comment);
        }
        CNode[] children = root.getChildren();
        for (CNode c : children) {
            dumpTree(c, indent + "  ");
        }

    }
For debugging - dump the tree from the given root to System.out.
configgen/src/main/java/com/yahoo/config/codegen/DefParser.java