SessionContext sessionContext = Beans.getReference(SessionContext.class);
ViewContext viewContext = Beans.getReference(ViewContext.class);
ConversationContext conversationContext = Beans.getReference(ConversationContext.class);
requestContext.deactivate();
sessionContext.deactivate();
viewContext.deactivate();
conversationContext.activate();
}
}