public static Class<?> unwrapCglib(Object instance) {
		Validate.notNull(instance, "Instance must not be null");
		Class<?> clazz = instance.getClass();
		if ((clazz != null) && clazz.getName().contains(CGLIB_CLASS_SEPARATOR)) {
			Class<?> superClass = clazz.getSuperclass();
			if ((superClass != null) && !Object.class.equals(superClass)) {
				return superClass;
			}
		}
		return clazz;
	}
public static Class < ? > unwrapCglib ( Object instance ) { Validate . notNull ( instance , "Instance must not be null" ) ; Class < ? > clazz = instance . getClass ( ) ; if ( ( clazz != null ) && clazz . getName ( ) . contains ( CGLIB_CLASS_SEPARATOR ) ) { Class < ? > superClass = clazz . getSuperclass ( ) ; if ( ( superClass != null ) && ! Object . class . equals ( superClass ) ) { return superClass ; } } return clazz ; }
获取CGLib处理过后的实体的原Class.