}
Uuid[] registrationIDs = new Uuid[size];
Uuid[] leaseIDs = new Uuid[size];
int i = 0;
for (Iterator iter = map.keySet().iterator(); iter.hasNext(); i++) {
FiddlerLease ls = (FiddlerLease)iter.next();
registrationIDs[i] = ls.getRegistrationID();
leaseIDs[i] = ls.getLeaseID();
}
Exception[] exceptions = server.cancelLeases(registrationIDs,leaseIDs);
if (exceptions == null) {
return;
}
i = 0;
HashMap emap = new HashMap(13);
for (Iterator iter = map.keySet().iterator(); iter.hasNext(); i++) {
FiddlerLease ls = (FiddlerLease)iter.next();
Exception ex = exceptions[i];
if (ex != null) {
emap.put(ls, ex);
iter.remove();
}