String query = dbp.getQuery(QUERY_AGENT_NAMES, substitutions);
String query = DBUtils.getQuery(QUERY_AGENT_NAMES, substitutions);
  public void initProperties() {    Map substitutions = new HashMap();    StringBuffer assemblyMatch = null;    if (assemblyID.size() != 0) {      try {	dbp = DBProperties.readQueryFile(DBUtils.DATABASE, DBUtils.QUERY_FILE);	database = dbp.getProperty("database");	username = dbp.getProperty("username");	password = dbp.getProperty("password");	assemblyMatch = new StringBuffer();	assemblyMatch.append("in (");	Iterator iter = assemblyID.iterator();	boolean first = true;	while (iter.hasNext()) {	  String val = (String)iter.next();	  if (first) {	    first = false;	  } else {	    assemblyMatch.append(", ");	  }	  assemblyMatch.append("'");	  assemblyMatch.append(val);	  assemblyMatch.append("'");	}	assemblyMatch.append(")");      	substitutions.put(":assemblyMatch", assemblyMatch.toString());	substitutions.put(":insertion_point", "Node.AgentManager.Agent");      } catch(IOException e) {	throw new RuntimeException("Error: " + e);      }      try {	Connection conn = DBConnectionPool.getConnection(database, username, password);	try {	  Statement stmt = conn.createStatement();	  String query = dbp.getQuery(QUERY_AGENT_NAMES, substitutions);	  ResultSet rs = stmt.executeQuery(query);	  while (rs.next()) {	    String agentName = getNonNullString(rs, 1, query);	    CMTAgent agent = new CMTAgent(agentName, assemblyID);	    agent.initProperties();	    addChild(agent);	  }	} finally {	  conn.close();	}      } catch (Exception e) {	e.printStackTrace();	throw new RuntimeException("Error" + e);      }        }      }