/** * Check whether the given object is a Spring proxy. * @param object the object to check */ private static boolean isSpringAopProxy(Object object) { Class<?> clazz = object.getClass(); return (implementsInterface(clazz, SPRING_SPRINGPROXY_CLASS_NAME) && (Proxy.isProxyClass(clazz) || isCglibProxyClass(clazz))); }