runtime.start();
// Load and start the system configuration
SystemCompositeContext systemContext = runtime.getSystemContext();
BootstrapHelper.bootstrapStaxLoader(systemContext, modelContext);
ModuleComponentConfigurationLoader loader = BootstrapHelper.getConfigurationLoader(systemContext, modelContext);
ModuleComponent systemModuleComponent = loader.loadSystemModuleComponent(SYSTEM_MODULE_COMPONENT, SYSTEM_MODULE_COMPONENT);
CompositeContext context = BootstrapHelper.registerModule(systemContext, systemModuleComponent);
context.publish(new ModuleStart(this));
// Load the SCDL configuration of the application module
CompositeContext rootContext = runtime.getRootContext();
ModuleComponent moduleComponent = loader.loadModuleComponent(name, uri);
moduleContext = BootstrapHelper.registerModule(rootContext, moduleComponent);
if (moduleContext.getURI() == null){
moduleContext.setURI(uri);
}
//TODO remove hack