}
ConcurrentMap<Date, Date> interim =
new ConcurrentHashMap<Date, Date>(pendingInstances);
for (Map.Entry<Date, Date> entry : interim.entrySet()) {
if (entry.getValue().before(now)) {
Entity entity = getEntity(key);
String cluster = getCluster(key);
GenericAlert.alertOnLikelySLAMiss(cluster, entity.getEntityType().name(),
entity.getName(), SchemaHelper.formatDateUTC(entry.getKey()));
LOG.debug("Removing from pending jobs: " + key + " ---> "
+ SchemaHelper.formatDateUTC(entry.getKey()));
pendingInstances.remove(entry.getKey());
}
}