//Creational context for creating instance
CreationalContext<Object> creationalContext = null;
//Local store, set by the OwbELContextListener
ELContextStore store = ELContextStore.localContext.get();
if (obj == null)
{
//Name of the bean
String name = (String) property;
//Get beans
Set<Bean<?>> beans = manager.getBeans(name);
//Found?
if(beans != null && !beans.isEmpty())
{
bean = (Bean<Object>)beans.iterator().next();
creationalContext = manager.createCreationalContext(bean);
//Already registered in store
if(bean.getScope().equals(Dependent.class))
{
object = store.getDependent(bean);
}
}
//If no object found on the store
if(object == null)
{
//Getting object
object = manager.getInstanceByName(name,creationalContext);
if (object != null)
{
context.setPropertyResolved(true);
//Adding into store
store.addDependent(bean, object, creationalContext);
}
}
//Object found on the store
else
{