// Populate the object(s).
for ( int i=0; i<rows.size(); i++ )
{
Permission obj = TurbineSecurity.getNewPermission(null);
Record row = (Record)rows.elementAt(i);
((SecurityObject)obj).setPrimaryKey( row.getValue(1).asInt() );
((SecurityObject)obj).setName( row.getValue(2).asString() );
byte[] objectData = (byte[])row.getValue(3).asBytes();
Map temp = (Map)ObjectUtils.deserialize(objectData);
if(temp != null)
{
((SecurityObject)obj).setAttributes(temp);
}