`iterator().next` it's to dangerous, since we can have no elements, or more than one elements. What you think about `BeanManager.resolve` instead?