while (itr.hasNext()) {
HashMap<String, OneMeasurement> res = null;
String key = itr.next();
try {
SlaveRMIInterface loadgen = (SlaveRMIInterface) rmiClients.get(key).lookup(SlaveClient.REGISTRY_NAME);
if (loadgen.getStatus() != Thread.State.TERMINATED) {
res = loadgen.getCurrentStats();
if (res != null && !res.isEmpty())
Measurements.getMeasurements().add(res);
alldone = false;
}
} catch (NotBoundException e) {