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

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