private Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result) {
   return getResultHandler(result)
       .handleResult(exchange, result)
       .otherwise(
           ex ->
               result
                   .applyExceptionHandler(ex)
                   .then(
                       exceptionResult ->
                           getResultHandler(result).handleResult(exchange, exceptionResult)));
 }