- try (StaticRuntimeContext staticRuntimeContext = new StaticRuntimeContext((Map<String, String>) config)) {
- staticRuntimeContext.run();
- Service.runtimeContext = staticRuntimeContext;
- Service.runtimeContext.waitForStop(0);
- }
+ StaticRuntimeContext staticRuntimeContext = new StaticRuntimeContext((Map<String, String>) config);
+ staticRuntimeContext.run();
+ Service.runtimeContext = staticRuntimeContext;
+ Service.runtimeContext.waitForStop(0);