How to know original class name if wrapped into proxy by Spring?
Spring provides a utility for this. http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/util/ClassUtils.html#getUserClass-java.lang.Class- public static Class<?> getUserClass(Class<?> clazz) “Return the user-defined class for the given class: usually simply the given class, but the original class in case of a CGLIB-generated subclass.”