static boolean isProxy(final Object result) {
        return result != null && Proxy.isProxyClass(result.getClass())
               && result.toString().startsWith(PROXY_BEAN_TOSTRING_PREFIX);
    }
Is proxy class?

@param result the result
@return true/false
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/beans/BeanSupplier.java