@Override
public void afterRun() throws Exception {
LocalQueueStatsImpl queueStats = getQueueService().getLocalQueueStatsImpl(name);
if (response != null) {
queueStats.incrementPolls();
publishEvent(ItemEventType.REMOVED, data);
} else {
queueStats.incrementEmptyPolls();
}
}