// if there's no activeYear, something is quite wrong...
// TODO: check anyways:
if (activeYear == null) {
activeYear = years.get(years.size() - 1);
}
String yearStr = fmt.format("{0,date,yyyy}",activeYear.getStart());
yearNum = Integer.parseInt(yearStr);
// now unroll the months in the active year into day-sized partitions:
List<Partition<CaptureSearchResult>> days =
capturePartitioner.getRange(daySize,