stopRuntime();
}
private void startRuntime() {
// Create an assembly model context
AssemblyContext modelContext = BootstrapHelper.getModelContext(getClass().getClassLoader());
modelFactory = modelContext.getAssemblyFactory();
modelLoader = modelContext.getAssemblyLoader();
// Create and start the runtime
NullMonitorFactory monitorFactory = new NullMonitorFactory();
ContextFactoryBuilderRegistry builderRegistry = BootstrapHelper.bootstrapContextFactoryBuilders(monitorFactory);
runtime = new RuntimeContextImpl(monitorFactory, builderRegistry, new DefaultWireBuilder());