{
RequestContext requestContext = instance().select(RequestContext.class, UnboundLiteral.INSTANCE).get();
if (requestContext.isActive())
{
requestContext.invalidate();
requestContext.deactivate();
}
// TODO deactivate the conversation context
BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get();