BufferedReader in = new BufferedReader(new InputStreamReader(ConfigFileFinder.open( queryFile )));
BufferedReader in = new BufferedReader(new InputStreamReader(getCluster().getConfigFinder().open(queryFile)));
  private void parseQueryFile() {    try {      BufferedReader in = new BufferedReader(new InputStreamReader(ConfigFileFinder.open( queryFile )));      Properties pt = null;      for (String line = in.readLine(); line != null; line=in.readLine()) {        	line = line.trim();     // ugly				// skip empty lines	if (line.length() == 0)	  continue;        	int len;				// handle continuation lines	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;				// queryhandler section	if (c == '%') {	  String s = line.substring(1).trim(); // skip the %	  if (s == null || s.length() == 0 || s.equals("Global")) {	    // global handler parameters	    pt = null;	  } else {	    // s names a queryhandler class (for now)	    try {	      if (s.indexOf('.') < 0) { // if the class has no package..		// try the default package (which is the same as ours)		String pkg = globalParameters.getProperty("Package");		if (pkg != null) {		  s = pkg+"."+s;		}	      }	      QueryHandler cqh= (QueryHandler)(Class.forName(s).newInstance());	      cqh.initialize(this, // LDMEssentialPlugIn			     // this, // ldmservice			     getClusterIdentifier(),			     getCluster(),			     getFactory(),			     pt = (Properties)globalParameters.clone(),			     subscriber);	      queries.addElement(cqh);	    } catch (Exception bogon) {	      System.err.println("Exception creating "+s+": "+bogon);	      bogon.printStackTrace();	    }	  }	} else {	  // should be a param=value line	  parseQueryParameter(((pt==null)?globalParameters:pt),			      line);	}      }      in.close();          } catch (Exception e) {      System.err.println("Error reading '"+queryFile+"': "+e);      e.printStackTrace();      throw new RuntimeException("No QueryFile: "+e);    }  }