Return the bean instance that uniquely matches the given object type, and potentially the name if provided, if any.
the name of the bean
the bean type