if(log.isDebugEnabled()) {
if(log.isInfoEnabled()) {
  public void refresh() {    Collection objectsFromServlet = CSMARTUL.getObjectsFromServlet(ClientServletUtil.METRICS_SERVLET);    if (objectsFromServlet == null)      return;      if(log.isDebugEnabled()) {        log.info("Received metrics: " + objectsFromServlet.size());      }    ArrayList names = new ArrayList();    ArrayList data = new ArrayList();    Iterator iter = objectsFromServlet.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();  }