throw new SienaException("Only one aggregation per query allowed");
}
if(ownees.size() == 1){
// owners
QueryOwned ownee = ownees.get(0);
Util.setField(obj, ownee.field, ownee.owner);
}
else if(ownees.size() > 1){
throw new SienaException("Only one owner per query allowed");