docs: @SuppressWarnings("unchecked")
      public void with(ExceptionHandler<? super T> exceptionHandler)
      {
          final EventProcessor eventProcessor = consumerRepository.getEventProcessorFor(eventHandler);
          if (eventProcessor instanceof BatchEventProcessor)
          {
              ((BatchEventProcessor<T>) eventProcessor).setExceptionHandler(exceptionHandler);
              consumerRepository.getBarrierFor(eventHandler).alert();
          }
          else
          {
              throw new RuntimeException(
                  "EventProcessor: " + eventProcessor + " is not a BatchEventProcessor " +
                  "and does not support exception handlers");
          }
      }