public static Version loadVersion(Integer id) {
   return (Version) DatabaseRecord.loadRecord(id, Version.class, true);
 }
 public static Version loadVersion(ResultSet rset) {
   return (Version) DatabaseRecord.loadRecord(rset, Version.class);
 }
 public AbstractList generateCollection(HttpSession session) {
   Product prod = (Product) session.getAttribute("record");
   String query = "select * from tbl_version where product = " + prod.getId();
   return DatabaseRecord.loadRecords(query, Version.class);
 }