code: private Holder<T> getOrReset() {
          if (buffer.get() == null || buffer.get().getBuffer().isEmpty()) {
              resetEventBuffer();
          }
          return buffer.get();
      }
docs: get the thread's event buffer, reset it if it is empty
  @return