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