@Override
@SuppressWarnings("deprecation")
public void start(StartContext startContext) throws StartException {
Runtime runtime = injectedRuntime.getValue();
MatchPolicy matchPolicy = new DefaultMatchPolicy();
File modulesDir = injectedServerEnvironment.getValue().getModulesDir();
environment = new RuntimeEnvironment(runtime, new SystemResourceStore(modulesDir), matchPolicy);
ModuleContext syscontext = runtime.getModuleContext();
registration = syscontext.registerService(RuntimeEnvironment.class, environment, null);