public static CompletableFuture<Void> deleteEventRequest(EventRequestManager eventRequestManager, EventRequest request) {
    if (isAsyncEnabled() && eventRequestManager instanceof EventRequestManagerImpl) {
      return ((EventRequestManagerImpl)eventRequestManager).deleteEventRequestAsync(request);
    }
    else {
      try {
        eventRequestManager.deleteEventRequest(request);
      }
      catch (ArrayIndexOutOfBoundsException e) {
        LOG.error("Exception in EventRequestManager.deleteEventRequest", e, ThreadDumper.dumpThreadsToString());
      }
    }
    return completedFuture(null);
  }
public static CompletableFuture<Void> deleteEventRequest(EventRequestManager eventRequestManager, EventRequest request)