boolean restarting = restartRequested;
restartRequested = false;
initLogging();
Weld weld = new Weld();
WeldContainer container = weld.initialize();
BeanManager manager = container.getBeanManager();
manager.fireEvent(new PreStartup());
manager.fireEvent(new Startup(workingDir, restarting));
manager.fireEvent(new PostStartup());
manager.fireEvent(new AcceptUserInput());