}
}
@SuppressWarnings("unchecked")
private ScopeContainer getConversationalScopeContainer(Message msg) {
ScopeContainer scopeContainer = null;
RuntimeComponent component = msg.getTo().getComponent();
if (component instanceof ScopedRuntimeComponent) {
ScopedRuntimeComponent scopedRuntimeComponent = (ScopedRuntimeComponent)component;
ScopeContainer container = scopedRuntimeComponent.getScopeContainer();
if ((container != null) && (container.getScope() == Scope.CONVERSATION)) {
scopeContainer = container;
}
}
return scopeContainer;