// Populate the object(s).
for ( int i=0; i<rows.size(); i++ )
{
//Role obj = new Role();
Role obj = new TurbineRole();
Record row = (Record)rows.elementAt(i);
((TurbineRole)obj).setPrimaryKey( row.getValue(1).asInt() );
((TurbineRole)obj).setName( row.getValue(2).asString() );
byte[] objectData = (byte[])row.getValue(3).asBytes();
Map temp = (Map)ObjectUtils.deserialize(objectData);