def hypernova_batch_after
      if @hypernova_batch.nil?
        raise NilBatchError.new('called hypernova_batch_after without calling '\
          'hypernova_batch_before. Check your around_filter for :hypernova_render_support')
      end
      return if @hypernova_batch.empty?

      jobs = @hypernova_batch.jobs
      hash = jobs.each_with_object({}) do |job, h|
        h[job[:name]] = job
      end
      hash = prepare_request(hash, hash)
      if send_request?(hash)
        begin
          will_send_request(hash)
          result = @hypernova_batch.submit!
          on_success(result, hash)
        rescue StandardError => e
          on_error(e, nil, hash)
          result = @hypernova_batch.submit_fallback!
        end
      else
        result = @hypernova_batch.submit_fallback!
      end

      new_body = Hypernova.replace_tokens_with_result(
        response.body,
        @hypernova_batch_mapping,
        result
      )
      response.body = new_body
    end
def hypernova_batch_after
      if @hypernova_batch.nil?
        raise NilBatchError.new('called hypernova_batch_after without calling '\
          'hypernova_batch_before. Check your around_filter for :hypernova_render_support')
      end
      return if @hypernova_batch.empty?

      jobs = @hypernova_batch.jobs
      hash = jobs.each_with_object({}) do |job, h|
        h[job[:name]] = job
      end
      hash = prepare_request(hash, hash)
      if send_request?(hash)
        begin
          will_send_request(hash)
          result = @hypernova_batch.submit!
          on_success(result, hash)
        rescue StandardError => e
          on_error(e, nil, hash)
          result = @hypernova_batch.submit_fallback!
        end
      else
        result = @hypernova_batch.submit_fallback!
      end

      new_body = Hypernova.replace_tokens_with_result(
        response.body,
        @hypernova_batch_mapping,
        result
      )
      response.body = new_body
    end
Modifies response.body to have all batched hypernova render results