if (measurement.size() != 2)
double x = 0, y = 0;  if (mode == 1)
   protected void chartExecution(XYSeriesCollection dataset, Execution execution) throws Exception   {      String providerName = execution.getProviderName();      XYSeries series = new XYSeries(providerName);      for(Iterator i = execution.iterator(); i.hasNext(); )      {         List measurement = (List)i.next();         // TODO This is a particular case, make it more general         if (measurement.size() != 2)         {            // ignore datapoints that do not have 2 parallel measurements (e.g. drains)            continue;         }         Result sendRate = (Result)measurement.get(0);         Result receiveRate = (Result)measurement.get(1);         if (sendRate instanceof Failure || receiveRate instanceof Failure)         {            // ignore this too            continue;         }         if (((Job)sendRate.getRequest()).getType() == ReceiveJob.TYPE)         {            Result tmp = sendRate;            sendRate = receiveRate;            receiveRate = tmp;         }         series.add(((ThroughputResult)sendRate).getThroughput(),                    ((ThroughputResult)receiveRate).getThroughput());      }      dataset.addSeries(series);   }