Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.db.DBUtils"); Set s = new HashSet(); try { Connection conn = DBUtils.getConnection(); try { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(dbQuery); while (rs.next()) {s.add(rs.getString(1));} rs.close(); stmt.close(); } finally { conn.close(); } } catch (Exception e) { if(log.isErrorEnabled()) { log.error("query: "+dbQuery, e); } throw new RuntimeException("Error" + e); } return s;
return dbGetPluginOrBinderClasses(dbQuery);
  public static Set dbGetPluginClasses() {    String dbQuery = DBUtils.getQuery(PLUGIN_QUERY, new HashMap());    Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.db.DBUtils");    Set s = new HashSet();    try {      Connection conn = DBUtils.getConnection();      try {        Statement stmt = conn.createStatement();	        ResultSet rs = stmt.executeQuery(dbQuery);        while (rs.next()) {s.add(rs.getString(1));}        rs.close();        stmt.close();      } finally {        conn.close();      }    } catch (Exception e) {      if(log.isErrorEnabled()) {        log.error("query: "+dbQuery, e);      }      throw new RuntimeException("Error" + e);    }    return s;  }