writer.println("uic = " + aad.getUIC());
writer.println("uic = " + ((aad == null) ? "UIC/" + ac.getName() : aad.getUIC()));
  private void writeAgentFile(File configDir, AgentComponentData ac) throws IOException {    PrintWriter writer = new PrintWriter(new FileWriter(new File(configDir, ac.getName() + ".ini")));    try {      writer.println("[ Cluster ]");      writer.println("class = " + ac.getClassName());      AgentAssetData aad = ac.getAgentAssetData();      writer.println("uic = " + aad.getUIC());      writer.println("cloned = false");      writer.println();      writer.println("[ Plugins ]");      // loop over the children - but what if one is not a PLUGIN?      // This does no type checking, and writes out all the children here//       if(log.isDebugEnabled()) {//         log.debug("Agent: " + ac.getName() + " has " + ac.childCount() + " Children");//       }      writeChildrenOfComp(writer, configDir, (ComponentData)ac);      writer.println();      writer.println("[ Policies ]");      writer.println();      writer.println("[ Permission ]");      writer.println();      writer.println("[ AuthorizedOperation ]");    } catch (Exception e) {      if(log.isErrorEnabled()) {        log.error("Error writing config file: ", e);      }    }    finally {      writer.close();    }    // write the prototype-ini file    writePrototypeINI(configDir, ac);        // write any other leaf component data files    writeLeafData(configDir, (ComponentData)ac);  } // end of writeAgentFile