public <R> R execute(ResultProducer<R> producer) {
        return execute(producer, x -> {});
    }
Executes the batch, returning the result obtained from the given {@link ResultProducer}.

@param <R> the type of the result
@param producer the result producer.
@return value returned by the result producer.
core/src/main/java/org/jdbi/v3/core/statement/PreparedBatch.java