configSource = (ModifiableSource) resolver.resolveURI(publicationsUri + "/"
+ newPublicationId + "/" + CONFIGURATION_FILE);
final boolean ENABLE_XML_NAMESPACES = true;
DefaultConfiguration config = (DefaultConfiguration) new DefaultConfigurationBuilder(
ENABLE_XML_NAMESPACES).build(configSource.getInputStream());
addTemplateConfiguration(template, config);
removeChildren(config.getMutableChild(ELEMENT_MODULES), ELEMENT_MODULE);
removeChildren(config.getMutableChild(ELEMENT_RESOURCE_TYPES), ELEMENT_RESOURCE_TYPE);