{
if (log.isDebugEnabled())
{
log.debug("getRealBean called for bean " + beanName);
}
ConversationManager manager = ConversationManager.getInstance();
Conversation conversation;
// check if we have a conversation
synchronized(manager)
{
conversation = manager.getConversation(conversationName);
if (conversation == null)
{
// Start the conversation. This eventually results in a
// callback to the createConversation method on this class.
conversation = manager.startConversation(conversationName, this);
}
else
{
// sanity check: verify that two beans with the different scopes
// do not declare the same conversationName.