Check why we try to create metadata for Object in case of parameter validation and for <return type> in case of return value validation
If you throw an error directly from PredefinedScopeBeanMetaDataManager such as:
you end up with the following error:
This does not sound like something we should do. I mean what would be the bean metadata for Object? And if the return value is not marked with @Valid, we can consider it's not a bean.