context.setInstanceManager(injectionContainer);
context.setThreadBindingListener(new ThreadSetupBindingListener(actions));
WEB_LOGGER.registerWebapp(context.getName());
try {
try {
context.create();
} catch (Exception e) {
throw new StartException(MESSAGES.createContextFailed(), e);
}
try {
context.start();