,(object==null)?new LinkedList():((ResourceImpl)object).getAvailabilityTable().getList()
,(object==null)?null:((ResourceImpl)object).getAvailabilityTable(),
1);
if (object!=null){
ResourceImpl resourceImpl=(ResourceImpl)object;
NodeModel model=((SpreadSheetModel)availabilitySpreadsheet.getModel()).getCache().getModel();
// availabilitySpreadsheet.clearActions();
availabilitySpreadsheet.setReadOnly(resourceImpl.isReadOnly());
availabilitySpreadsheet.setEnabled(!resourceImpl.isReadOnly());
model.setMaster(resourceImpl.getGlobalResource().isMaster());
model.setLocal(resourceImpl.getGlobalResource().isLocal());
//TODO instead of doing this availabilityTable and Availability can contain a read-only field
}
}