break;
default:
throw new RuntimeException(option.getKey() + " is not a valid retry option parameter.");
}
}
options.retryOptions(retryOptions);
} else if (value instanceof RetryOptions) {
options.retryOptions((RetryOptions) value);
} else {
throw new RuntimeException("The retry options parameter should either be a map or an instance of RetryOptions.");
}