Scope scope = provider.getScope();
if (scope == null) {
scope = Scope.STATELESS;
}
ScopeContainerFactory factory = scopeCache.get(scope);
ScopeContainer container = factory.createScopeContainer(component);
component.setScopeContainer(container);
return container;
}
return null;
}