We do not need to call beanManager.getReference() at all. We should unify this code to first obtain the context and then either call get(Contextual) or get(Contextual. CreationalContext) if the creational context is non null.