if(log.isDebugEnabled()) {
if(log.isWarnEnabled()) {
  private static Color stringToColor(String s) {    StringTokenizer st = new StringTokenizer(s, ",");    Logger log = CSMART.createLogger("org.cougaar.tools.csmart.ui.monitor.generic.CSMARTGraph");    if (st.countTokens() < 3) {      if(log.isDebugEnabled()) {        log.warn("CSMARTGraph: WARNING: Can't parse color: " + s);      }      return Color.green; // bad color string, return default color    }    int[] rgb = new int[3];    try {      for (int i = 0; i < 3; i++)	rgb[i] = Integer.parseInt(st.nextToken());    } catch (Exception e) {      if(log.isDebugEnabled()) {        log.error("Exception parsing color string: " + e);      }      return Color.green;    }    return new Color(rgb[0], rgb[1], rgb[2]);  }