public static <T> T doUnchecked(final CheckedSupplier<T> consumer) {
        return Unchecked.supplier(consumer).get();
    }
Do unchecked.

@param <T>      the type parameter
@param consumer the consumer
@return the t
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java