Checks reference type for JDK-proxied beans. See JDK- and CGLIB-based proxies section of Spring documentation for details.