Iterator<?> objectsIterator = container.containedObjectsIterator();
while (objectsIterator.hasNext()) {
Object object = objectsIterator.next();
if (object instanceof Rollbackable) {
Rollbackable rollbackObject = (Rollbackable) object;
Checkpoint checkpoint = rollbackObject.$GET$CHECKPOINT();
if (!checkpoints.contains(checkpoint)) {
long timestamp = checkpoint.createCheckpoint();
checkpointsAndHandles.put(checkpoint, new Long(timestamp));
checkpoints.add(checkpoint);
}
}
}