final Iterator<Map.Entry<JobID, PendingRequestsMap>> it = this.pendingRequestsOfJob.entrySet().iterator();
while (it.hasNext()) {
final List<AllocatedResource> allocatedResources = new ArrayList<AllocatedResource>();
final Map.Entry<JobID, PendingRequestsMap> entry = it.next();
final JobID jobID = entry.getKey();
final PendingRequestsMap pendingRequestsMap = entry.getValue();
final Iterator<Map.Entry<InstanceType, Integer>> it2 = pendingRequestsMap.iterator();
while (it2.hasNext()) {
final Map.Entry<InstanceType, Integer> entry2 = it2.next();