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