static <T> void ifNotProxy(final T object, final Consumer<T> consumer) {
        if (isNotProxy(object)) {
            consumer.accept(object);
        }
    }
If not proxy, then do.

@param object   the object
@param consumer the consumer
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/beans/BeanSupplier.java