if (component.getScopeContainer() != null) {
return component.getScopeContainer();
}
ImplementationProvider implementationProvider = component.getImplementationProvider();
if (implementationProvider instanceof ScopedImplementationProvider) {
ScopedImplementationProvider provider = (ScopedImplementationProvider)implementationProvider;
Scope scope = provider.getScope();
if (scope == null) {
scope = Scope.STATELESS;
}
ScopeContainerFactory factory = scopeCache.get(scope);
ScopeContainer container = factory.createScopeContainer(component);