// Configure services
// Guice does not handle @PostConstruct and @PreDestroy, so we need to handle them
ServerAnnotationProcessor processor = new ServerAnnotationProcessor(bayeuxServer);
GuiceBayeuxService service = injector.getInstance(GuiceBayeuxService.class);
Assert.assertTrue(processor.process(service));
// At this point we're configured properly
// The code above should be put into a ServletContextListener.contextInitialized()
// method, so that it is triggered by the web application lifecycle handling
// and the BayeuxServer instance can be put into the ServletContext