final String adapterId = StringUtils.stringFromBinary(adapter.getAdapterId().getBytes());
final CloseableIterator<DataStatistics<?>> it = statisticsStore.getDataStatistics(adapter.getAdapterId());
while (it.hasNext()) {
final DataStatistics stats = it.next();
statisticsStore.removeStatistics(
adapter.getAdapterId(),
stats.getStatisticsId(),
additionalAuthorizations);
}
deleteAll(
tableName,