/** * {@inheritDoc} * * This will also remove the current ConversationContext from the SessionContext */ @Override public void end() { checkThreadUsage(); if (!isTransient) { iDontUseItAnymore(); id = null; isTransient = true; } else { logger.log(Level.WARNING, OWBLogConst.WARN_0004, id); throw new IllegalStateException(toString() + " has already ended"); } // now store this conversation in the SessionContext ConversationManager conversationManager = webBeansContext.getConversationManager(); ConversationContext conversationContext = (ConversationContext) webBeansContext.getContextsService().getCurrentContext(ConversationScoped.class); conversationManager.removeConversationFromStorage(conversationContext); }