private void putBatch(final List<StatisticEvent> eventsBatch) {
        if (eventsBatch.size() > 0) {
            final StatisticEvent firstEventInBatch = eventsBatch.get(0);
            final String statName = firstEventInBatch.getName();
            final StatisticStoreDoc statisticsDataSource = getStatisticsDataSource(statName);

            if (statisticsDataSource == null) {
                throw new RuntimeException(String.format("No statistic data source exists for name %s", statName));
            }
            putEvents(eventsBatch, statisticsDataSource);
        }
    }
@param eventsBatch A batch of {@link StatisticEvent} all with the same statistic name
stroom-statistics/stroom-statistics-impl-sql/src/main/java/stroom/statistics/impl/sql/SQLStatisticEventStore.java