List results = new ArrayList();
// Populate the object(s).
for (int i = 0; i < rows.size(); i++)
{
Group obj = TurbineSecurity.getGroupInstance(null);
Record row = (Record) rows.get(i);
((TurbineGroup) obj).setPrimaryKey(
new NumberKey(row.getValue(1).asInt()));
((TurbineGroup) obj).setName(row.getValue(2).asString());