Using BeanManager.resolve()