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