rQFileLastMod = 0l;
  private static Set getAvailableQueries() {    Logger log = CSMART.createLogger("org.cougaar.tools.csmart.recipe.RecipeQueryProperty");    // Get the last modified date of the recipeQueries file.    // If it's the same now as it was before, dont re-read    File rqfile = ConfigFinder.getInstance().locateFile(RecipeComponent.RECIPE_QUERY_FILE);    long newMod = 0l;    if (rqfile != null) {      try {	newMod = rqfile.lastModified();      } catch (SecurityException se) {      }    }    // If we have never read the available queries, or the recipeQueries.q file was modified,    // must re-collect the available queries    if (availQueries == null || newMod != rQFileLastMod) {      availQueries = new HashSet();      rQFileLastMod = 0l;      DBProperties dbp = null;            // First grab the queries from PopulateDb.q      // Note that this is the cached DBProperties - which may already      // have the contents of recipeQueries.q in it      try {	dbp = DBProperties.readQueryFile(PDbBase.QUERY_FILE);      } catch (IOException ioe) {	if (log.isDebugEnabled()) {	  log.debug("Couldn't read " + PDbBase.QUERY_FILE);	}      }      // Add in the contents of recipeQueries.q - possibly just over-writing      // the values previously added      try {	// Add to the basic PopDb.q the queries in recipeQueries.q	dbp.addQueryFile(RecipeComponent.RECIPE_QUERY_FILE);	rQFileLastMod = newMod;      } catch (IOException e) {	if (log.isDebugEnabled()) {	  log.debug("No " + RecipeComponent.RECIPE_QUERY_FILE + " file found.");	}      }            // Now collect the query names from the combo .q file      for (Iterator i = dbp.keySet().iterator();	   i.hasNext(); ) {	String s = i.next().toString();	if (s.startsWith("recipeQuery")) {	  StringRange sr = new StringRange(s);	  // Since on save only the last query of a given name is available,	  // only list queries with a duplicate name once	  if (! availQueries.contains(sr)) 	    availQueries.add(sr);	}      } // loop over query names    } // end of block to (re-)read the queries    return availQueries;  }