throws ResolutionException
{
Set<Bean<?>> beans = getBeanManager().getBeans(type, qualifiers);
if (beans == null || beans.isEmpty())
{
throw new ResolutionException("cannot find beans for class " + type.getCanonicalName());
}
if (beans.size() > 1)
{
throw new AmbiguousResolutionException("cannot find beans for class " + type.getCanonicalName());