private RecordList errorsFromExportResult(Record[] exportResults) {
   RecordList recordList = new RecordList();
   for (Record result : exportResults) {
     Record[] errors = result.getAttributeAsRecordArray(ExportResourceApi.RESULT_ERRORS);
     if (errors != null && errors.length > 0) {
       recordList.addList(errors);
     }
   }
   return recordList;
 }
  @Override
  protected void editRecord(Record record) {
    super.editRecord(record);

    Record[] bundleRecords = record.getAttributeAsRecordArray(BundleGroupsDataSource.FIELD_BUNDLES);
    ListGridRecord[] bundleListGridRecords = toListGridRecordArray(bundleRecords);

    this.bundleSelector = new BundleSelector(bundleListGridRecords, canAssign, canUnassign);
    this.bundleSelector.addAssignedItemsChangedHandler(
        new AssignedItemsChangedHandler() {
          public void onSelectionChanged(AssignedItemsChangedEvent event) {
            BundleGroupEditView.this.onItemChanged();
          }
        });
    updateTab(this.bundlesTab, this.bundleSelector);
  }