if (log.isWarnEnabled()) log.warn("Unable to find servlets.txt!");
if (log.isWarnEnabled()) { log.warn("Unable to find servlets.txt! Report bug 2000."); log.warn("config.path= " + System.getProperty("org.cougaar.config.path")); log.warn("Trying again with verbose on: "); cf.setVerbose(true); try { inputFile = cf.locateFile("servlets.txt"); } catch(Exception e) { log.error("Could not read servlets file.", e); } if (inputFile != null) { log.warn(".. this time we found it?"); } else { log.warn("... still couldn't find it?"); } }
  private Vector getServletList() {    Vector vec = null;    ConfigFinder cf = ConfigFinder.getInstance();    File inputFile = null;    try {      inputFile = cf.locateFile("servlets.txt");    } catch(Exception e) {      if (log.isErrorEnabled()) {	log.error("Could not read servlets file.", e);      }    }     if (vec == null) {      vec = new Vector();      if (inputFile != null) {	try { 	  RandomAccessFile servletFile = null;	  // read servlets, one per line	  servletFile = new RandomAccessFile(inputFile, "r");      	  while (true) {	    String isrv = servletFile.readLine(); // get servlet line	    // Skip comment lines	    if (isrv == null) {	      break;	    }	    isrv = isrv.trim();	    if (isrv.startsWith("#") || isrv.equals(""))	      continue;	    ServletListRecord servletRecord = parseServletLine(isrv);	    vec.add(servletRecord);	  }	  servletFile.close();	} catch (IOException e) {	  if (log.isErrorEnabled()) {	    log.error("Error during read/open from file: " + inputFile, e);	  }	}      } else {	if (log.isWarnEnabled())	  log.warn("Unable to find servlets.txt!");      }    }    return vec;      }