public Configuration build(Configuration top, String id) {
ConfigurationBuilder cb = null;
cb = ConfigurationBuilderFactory.getBuilder(null);
ConfigurationMetadataBuilder builder = new ConfigurationMetadataBuilder(true);
InputStream is = DefaultResourceManager.instance()
.getResourceAsStream("org/objectweb/celtix/bus/configuration/resources/leaf.xml");
ConfigurationMetadata model = null;
try {
model = builder.build(is);
} catch (IOException ex) {
// ignore
}
cb.addModel(model);
return cb.buildConfiguration(model.getNamespaceURI(), id, top);