public void contextInitialized(final ServletContextEvent event) {
final ServletContext context = event.getServletContext();
final ServletRackConfig config = new ServletRackConfig(context);
final RackApplicationFactory factory = newApplicationFactory(config);
context.setAttribute(RackApplicationFactory.FACTORY, factory);
final ServletRackContext rackContext = new DefaultServletRackContext(config);
context.setAttribute(RackApplicationFactory.RACK_CONTEXT, rackContext);
try {
factory.init(rackContext);
}
catch (RuntimeException e) {