log.error("sqlListFromQuery: "+dbQuery); e.printStackTrace();
log.error("sqlListFromQuery: "+dbQuery, e);
  static String sqlListFromQuery (String query, Map substitutions) {    Logger qLog = CSMART.createLogger("queries");    Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.db.CMT");    if (qLog.isDebugEnabled()){      qLog.debug("\nsqlListFromQuery "+query);    }    String dbQuery = DBUtils.getQuery(query, substitutions, QUERY_FILE);    if (qLog.isDebugEnabled()){      qLog.debug("\nsqlListFromQuery "+dbQuery);    }    try {      StringBuffer q = new StringBuffer();      Connection conn = DBUtils.getConnection(QUERY_FILE);      try {	Statement stmt = conn.createStatement();		ResultSet rs = stmt.executeQuery(dbQuery);	boolean first = true;	q.append(" (");	while (rs.next()) {	  if (first) {	    first = false;	  } else {	    q.append(", ");	  }	  q.append("'").append(rs.getString(1)).append("'");	}	rs.close();	stmt.close();      } finally {	conn.close();      }      q.append(')');      return q.toString();    }    catch (Exception e) {      if(log.isErrorEnabled()) {         log.error("sqlListFromQuery: "+dbQuery);         e.printStackTrace();      }      throw new RuntimeException("Error" + e);    }  }