modules = new Xpp3Dom("modules"); //$NON-NLS-1$
configuration.addChild(modules);
}
//TODO find a more elegant way to clear the modules
while(modules.getChildCount() > 0) {
modules.removeChild(0);
}
//Recreate the module's children, forcing the uri.
for(EarModule earModule : earModules) {
modules.addChild(earModule.getAsDom());
}