// Detect BatchInterrupted
int count = resultFeed.getEntries().size();
if (count > 0) {
BaseEntry<?> entry = resultFeed.getEntries().get(count - 1);
BatchInterrupted interrupted = BatchUtils.getBatchInterrupted(entry);
if (interrupted != null) {
throw new BatchInterruptedException(resultFeed, interrupted);
}
}