void requestIndexRebuildOnException(RuntimeException exception, ID<?, ?> indexId) {
    Throwable causeToRebuildIndex = getCauseToRebuildIndex(exception);
    if (causeToRebuildIndex != null) {
      requestRebuild(indexId, causeToRebuildIndex);
    }
    else {
      throw exception;
    }
  }
void requestIndexRebuildOnException(RuntimeException exception, ID<?, ?> indexId)