if(log.isDebugEnabled()) { log.error("Exception parsing color string: " + e);
if(log.isErrorEnabled()) { log.error("Exception parsing color string: ", e);
  private Color stringToColor(String s) {    StringTokenizer st = new StringTokenizer(s, ",");    if (st.countTokens() < 3)      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]);  }