}
else
{
BeanManagerImpl manager = BeanManagerImpl.getManager();
specializedComponent = (AbstractOwbBean<Object>)WebBeansUtil.getMostSpecializedBean(manager, baseComponent);
Context context = null;
try
{
context = manager.getContext(specializedComponent.getScope());
}
catch (ContextNotActiveException cnae)
{
// this may happen if we try to e.g. send an event to a @ConversationScoped bean from a ServletListener
logger.info(OWBLogConst.INFO_0010, bean);
return;
}
creationalContext = manager.createCreationalContext(specializedComponent);
// on Reception.IF_EXISTS: ignore this bean if a the contextual instance doesn't already exist
if (ifExist && context.get(specializedComponent) == null)
{
return;
}
// on Reception.ALWAYS we must get a contextual reference if we didn't find the contextual instance