rs.next(); orgClass = rs.getString(1);
while (rs.next()) { orgClass = rs.getString(1); }
  private String queryOrgClass() {    String orgClass;    substitutions.put(":agent_name", name);    try {      Connection conn = DBUtils.getConnection();      try {	Statement stmt = conn.createStatement();		String query = DBUtils.getQuery(QUERY_AGENT_ASSET_CLASS, substitutions);	ResultSet rs = stmt.executeQuery(query);	rs.next();	orgClass = rs.getString(1);	  	rs.close();	stmt.close();      } finally {	conn.close();      }    } catch (Exception e) {      e.printStackTrace();      throw new RuntimeException("Error" + e);    }    return orgClass;  }