public static Class < ? > cleanProxy ( Class < ? > toClean ) { if ( ProxyUtils . isProxy ( toClean ) ) { return toClean . getSuperclass ( ) ; } return toClean ; }
Return the non proxy class if needed .