public void onItem(List<? extends ProfileResourceNode> itemChunk)
throws JobCancellationException {
itemWriter.write(itemChunk);
if (cancelled) {
log.info("Export interrupted");
throw new JobCancellationException("Cancelled");
}
}
};
Filter filter = filterOverride != null ? filterOverride : profile.getFilter();