private DOMConfiguration(Configuration from) {
DOMConfiguration config;
if (from instanceof DOMConfiguration) {
config = (DOMConfiguration)from;
} else {
Element element = new ElementPuller().pull(from.getQName());
config = new DOMConfiguration(element);
for (QName qname : from.getAttributeQNames()) {
config.setAttribute(qname, from.getAttribute(qname));
}
for (Configuration grandchild : from.getChildren()) {