public static <T> T doAndRetry(final RetryCallback<T, Exception> callback) throws Exception {
        return doAndRetry(List.of(), callback);
    }
Do and retry.

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