if (phaseEvent.getPhaseId().equals(PhaseId.RESTORE_VIEW))
{
//It looks for cid parameter in the JSF request.
//If request contains cid, then it must restore conversation
//Otherwise create NonexistentException
Conversation conversation = conversationManager.getConversationBeanReference();
String cid = JSFUtil.getConversationId();
if (conversation.isTransient())
{
logger.info(OWBLogConst.INFO_0016, new Object[]{conversation.getId()});
ContextFactory.initConversationContext(null);
//Not restore, throw exception
if(cid != null && !cid.equals(""))
{
throw new NonexistentConversationException("Propogated conversation with cid=" + cid + " is not restored. It creates a new transient conversation.");
}
}
else
{
logger.info(OWBLogConst.INFO_0015, new Object[]{conversation.getId()});
//Conversation must be used by one thread at a time
ConversationImpl owbConversation = (ConversationImpl)conversation;
if(!owbConversation.getInUsed().compareAndSet(false, true))
{