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.add(CDISessionID.class, new CDISessionID(sessionId, beanStore));
}