{
Page page = Pages.instance().getPage(viewId);
if(conversationName != null)
{
ConversationIdParameter currentConversationIdParameter = Pages.instance().getConversationIdParameter(conversationName);
if(currentConversationIdParameter == null)
{
throw new IllegalStateException("The conversationName specified: " + conversationName + ", does not exist.");
}
// Try to restore the conversation from parameters (the user has specified the exact conversation to restore using f:param)
conversationId = currentConversationIdParameter.getRequestConversationId(parameters);
// NOTE: If conversationId is still null, don't try to resolve the EL here because we don't yet
// have a conversation and therefore things may blow up; resolve EL in getInitialConversationId()
}
else