FormatNode root = new FormatNode();
root.shortname = rootElement;
for (final String var : cfgbuf.getVars())
{
// if var is a 'hidden' or a 'removed' parameter, don't dump.
ConfigurationInfo info = cfgbuf.getInfo(var);
if (info != null && (info.isHidden() || info.isRemoved() || !info.isDisplayed()))
{
continue;
}
addNode(cfgbuf, var, root);
}