GLMDebug.ERROR(className_,"Error reading '"+queryFile+"': "+e);
if (logger.isErrorEnabled()) { logger.error("Error reading '" + queryFile + "': " + e); }
  protected void parseQueryFile(String queryFile) {    try {      BufferedReader in = new BufferedReader(new InputStreamReader(getConfigFinder().open(queryFile)));      for (String line = in.readLine(); line != null; line=in.readLine()) {	line = line.trim();	// skip empty lines	if (line.length() == 0)	  continue;	// handle continuation lines	int len;	while ((len = line.length()) > 0 && '\\' == line.charAt(len-1)) {	  line = (line.substring(0,len-1))+(in.readLine().trim());	}	char c = line.charAt(0);	// skip comments	if (c == '#')	  continue;	else if (line.indexOf("select ") != -1) { //WAN if the word "select " is found process as if query	  //String queryType = line.substring(1).trim(); // skip the <	  int equalsIndex = line.indexOf('='); //find the =	  String queryType = line.substring(0, equalsIndex);	  int dotIndex = queryType.indexOf(".");	  if (dotIndex != -1)	    queryType = queryType.substring(dotIndex+1).trim();	  else	    queryType = "default";	  //only process query if it is a default query or it is a query for the type of database that is being used	  if (queryType.equals("default")) {	     // I don't think this needs to be done -- llg 	    //line = Parameters.replaceParameters(line);	    parseQueryLine(line);	  }	  else if (queryType.equalsIgnoreCase(dbType)){	    String startQuery = line.substring(0, dotIndex);	    String endQuery = line.substring(equalsIndex);	    String newLine = startQuery+endQuery;	    //newLine = Parameters.replaceParameters(line); 	    // I don't think this needs to be done -- llg 	    parseQueryLine(newLine, true);	  }	  else //skip if this query does not match this database type and is not a default query (WAN)	    continue;	}	else {	  // should be a param=value line	  line = Parameters.replaceParameters(line);	  parseQueryLine(line);	}      }      in.close();    } catch (Exception e) {      GLMDebug.ERROR(className_,"Error reading '"+queryFile+"': "+e);      e.printStackTrace();      throw new RuntimeException("No QueryFile: "+e);    }  }