if(log.isDebugEnabled()) {
if(log.isErrorEnabled()) {
  private void setupDotPath() {    if (dotExecutable != null)      return;    // Win: x86, Linux: i386, Solaris: sparc    String arch = (String)System.getProperty("os.arch");    // Win: Windows NT, Linux: Linux, Solaris: SunOS    String os = (String)System.getProperty("os.name");    String[] dotNames = {"dot.exe", "dot-l386", "dot-L386", "dot"};    String[] dotPaths = new String[5];    dotPaths[0] = System.getProperty("org.cougaar.install.path") + File.separatorChar + "csmart" + File.separatorChar + "bin" + File.separatorChar;    dotPaths[1] = System.getProperty("org.cougaar.install.path") + File.separatorChar + "sys" + File.separatorChar;    dotPaths[2] = System.getProperty("org.cougaar.install.path") + File.separatorChar + "bin" + File.separatorChar;    dotPaths[3] = System.getProperty("org.cougaar.install.path") + File.separatorChar + "csmart" + File.separatorChar + "data" + File.separatorChar;    dotPaths[4] = System.getProperty("org.cougaar.install.path") + File.separatorChar + "csmart" + File.separatorChar + "lib" + File.separatorChar;    String dotName = "dot.exe";    if (os.equals("Linux") || os.equals("SunOS")) {      dotName = "dot-l386";      dotNames[1] = dotNames[0];      dotNames[0] = dotName;    } else if (! os.startsWith("Windows")) {      // What is this OS?      if(log.isDebugEnabled()) {        log.error("Unknown OS, " + os + ", not recognized. If this is a Windows or Linux variant, please report it on the Cougaar bug-tracking site. \n\nCannot lay out graphs without recognizing your system as either Windows or Linux.");      }      System.exit(-1);    }    File dotFile = null;    for (int j = 0; j < dotNames.length; j++) {      for (int i = 0; i < dotPaths.length; i++) {	dotExecutable = dotPaths[i] + dotNames[j];	try {          if(log.isDebugEnabled()) {            log.debug("Looking for " + dotExecutable);          }	  dotFile = new File(dotExecutable);	} catch (NullPointerException e) {          if(log.isDebugEnabled()) {            log.debug("CSMARTGraph: Could not open file handle for " + dotExecutable);          }	  dotFile = null;	}	if (dotFile != null && dotFile.exists())	  break;      } // end of dotPaths loop      if (dotFile != null && dotFile.exists())	break;    } // end of dotNames loop	    if (dotFile == null || ! dotFile.exists()) {      if(log.isDebugEnabled()) {        log.error("CSMARTGraph: Could not find dot executable: " + dotName + " (the version used for your OS, " + os + ").\n Make sure it is in CIP/csmart/bin, CIP/sys, CIP/bin, CIP/csmart/data or CIP/csmart/lib.");      }      System.exit(-1);    }  } // end of setupDotPath