/** See method get(name, objectFactory). */
protected Object getBean(String beanName, ObjectFactory objectFactory)
{
String conversationName = getConversationNameForBean(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
{
assertSameScope(beanName, conversation);
}