159160161162163164165166167168169
Record[] record = new Record[3]; for (int i = 0; i < 3; i++) { try { record[i] = recordHome.findByPrimaryKey("bill " + i); } catch (FinderException e) { record[i] = recordHome.create("bill " + i); }