CloneVisitor visitor = new CloneVisitor();
for (Iterator it = nodes.iterator(); it.hasNext();)
{
ConfigurationNode nd = (ConfigurationNode) it.next();
nd.visit(visitor);
for (Iterator it2 = visitor.getClone().getChildren().iterator(); it2.hasNext();)
{
result.getRootNode().addChild((ConfigurationNode) it2.next());
}