public static ConfigDefinition createConfigDefinition(CNode root) {
        ConfigDefinition def = new ConfigDefinition(root.getName(), root.getNamespace());

        for (CNode node : root.getChildren()) {
            addNode(def, node);
        }
        return def;
    }
Creates a ConfigDefinition based on a tree generated from parsing a config
definition file.

@param root the root node in a tree generated from parsing a config definition file.
@return a ConfigDefinition object
config/src/main/java/com/yahoo/vespa/config/ConfigDefinitionBuilder.java