Collection objectsFromPSP = CSMARTUL.getObjectsFromPSP(PSP_METRICS);
Collection objectsFromPSP = CSMARTUL.getObjectsFromServlet(PSP_METRICS);
  public void refresh() {    Collection objectsFromPSP = CSMARTUL.getObjectsFromPSP(PSP_METRICS);    if (objectsFromPSP == null)      return;    System.out.println("Received metrics: " + objectsFromPSP.size());    ArrayList names = new ArrayList();    ArrayList data = new ArrayList();    Iterator iter = objectsFromPSP.iterator();    while(iter.hasNext()) {      Object obj = iter.next();      if(obj instanceof String) {	names.add(obj);      }	else if (obj instanceof Integer[]) { 	data.add(obj);      }    }    createTableModel(names, data);    // set bar data source from table model    ChartDataView barDV = chart.getDataView(0);    JCChartSwingDataSource csDataSource =       new JCChartSwingDataSource(chartDataTableModel, 				 namearray, "CSMART Metric Data");    barDV.setDataSource(csDataSource);    chart.update();  }