}
@Override
protected Conversation createInstance(CreationalContext<Conversation> creationalContext)
{
ConversationService conversationService = ServiceLoader.getService(ConversationService.class);
String conversationId = conversationService.getConversationId();
Conversation conversation = null;
if (conversationId != null)
{
conversation = ConversationManager.getInstance().getConversation(conversationId);
}
else
{
conversation = new ConversationImpl(conversationService.getConversationSessionId());
}
return conversation;
}