throw new IllegalStateException("No " + WeldManager.class.getName() + " found in context");
}
ContextLifecycle lifeCycle = manager.getServices().get(ContextLifecycle.class);
String sessionId = UUID.randomUUID().toString();
BeanStore beanStore = new ConcurrentHashMapBeanStore();
lifeCycle.restoreSession(sessionId, beanStore);
context.register(endSessionEvent, new DestorySession(sessionId, beanStore));
}