List<String> bundlesToPurge = new ArrayList<String>();
for (Iterator<String> it = bundles.iterator(); it.hasNext(); ) {
String bundleId = it.next();
// We only purge the bundle and its children if they are all ready to be purged
long numChildrenNotReady = jpaService.execute(
new CoordJobsCountNotForPurgeFromParentIdJPAExecutor(coordOlderThan, bundleId));
if (numChildrenNotReady == 0) {
bundlesToPurge.add(bundleId);
LOG.debug("Purging bundle " + bundleId);
// Get all of the direct children for this bundle
List<String> children = new ArrayList<String>();