if (page != null)
{
String cid = (String) page.getMetaData(CID);
if (cid != null)
{
Manager manager = Manager.instance();
if (manager.isLongRunningConversation())
{
if (!cid.equals(manager.getCurrentConversationId()))
{
manager.switchConversation(cid);
}
}
else
{
ConversationPropagation cp = ConversationPropagation.instance();
cp.setConversationId(cid);
manager.restoreConversation();
}
}
else
{
Manager manager = Manager.instance();
if (manager.isLongRunningConversation())
{
page.setMetaData(CID, Manager.instance().getCurrentConversationId());
}
}
}