private void addScopeContainer(Component component) {
if (!(component instanceof ScopedRuntimeComponent)) {
return;
}
ScopedRuntimeComponent runtimeComponent = (ScopedRuntimeComponent)component;
ScopeContainer scopeContainer = scopeRegistry.getScopeContainer(runtimeComponent);
if (scopeContainer != null && scopeContainer.getScope() == Scope.CONVERSATION) {
conversationManager.addListener((ConversationalScopeContainer)scopeContainer);
}
runtimeComponent.setScopeContainer(scopeContainer);
}