// This usage of .clear() will remove the processed resources from the backing list.
String markerPrefix = null;
if (isDebugEnabled) {
markerPrefix = String.format("a. Batch [%03d] (%d): ", batchNumber, syncInfos.size());
marker = String.format("%sGet resource ID sublist - %d of %d remaining", markerPrefix, end, size);
stopWatch.markTimeBegin(marker);
}
List<Integer> resourceIdBatch = resourceIdList.subList(0, end);
Integer[] resourceIdArray = resourceIdBatch.toArray(new Integer[resourceIdBatch.size()]);