} catch (ContextNotActiveException e) {
activeBeforeApplyRequestValues = false;
}
}
if (event.getPhaseId().equals(PhaseId.RENDER_RESPONSE)) {
Conversation conversation = CDI.current().select(Conversation.class).get();
HttpServletResponse response = (HttpServletResponse) event.getFacesContext().getExternalContext().getResponse();
response.addHeader(AbstractConversationTest.CID_HEADER_NAME,
conversation.getId() == null ? " null" : conversation.getId());
response.addHeader(AbstractConversationTest.LONG_RUNNING_HEADER_NAME, String.valueOf(!conversation.isTransient()));
response.addHeader(Cloud.RAINED_HEADER_NAME, new Boolean(OldSPIBridge.getInstanceByType(beanManager, Cloud.class)
.isRained()).toString());
response.addHeader(ACTIVE_BEFORE_APPLY_REQUEST_VALUES_HEADER_NAME,
new Boolean(activeBeforeApplyRequestValues).toString());
}