if(log.isDebugEnabled()) {
if(log.isErrorEnabled()) {
  private void writeLeafData(File configDir, ComponentData me) throws IOException {    if (me.leafCount() < 1)      return;    LeafComponentData[] leaves = me.getLeafComponents();    for (int i = 0; i < me.leafCount(); i++) {      LeafComponentData leaf = leaves[i];      if (leaf == null)	continue;      if (!leaf.getType().equals(LeafComponentData.FILE)) {        if(log.isDebugEnabled()) {          log.error("Got unknown LeafComponent type: " + leaf.getType());        }	continue;      }      PrintWriter writer = new PrintWriter(new FileWriter(new File(configDir, leaf.getName())));      try {	writer.println(leaf.getValue().toString());      } catch (Exception e) {        if(log.isDebugEnabled()) {          log.error("Error writing config file: " + e);        }      }      finally {	writer.close();      }    } // end of loop over leaves  } // end of writeLeafData  