Collection rfsAssetTransfers = myRFSAssetTransfers.getCollection(); Collection rfdAssetTransfers = myRFDAssetTransfers.getCollection();  for (Iterator rfsIterator = rfsAssetTransfers.iterator(); rfsIterator.hasNext();) { AssetTransfer assetTransfer = (AssetTransfer) rfsIterator.next();  if (assetTransfer.getAsset().equals(selfOrg)) { assetTransfer.indicateAssetChange(); publishChange(assetTransfer, changeReports); } }  for (Iterator rfdIterator = rfdAssetTransfers.iterator(); rfdIterator.hasNext();) { AssetTransfer assetTransfer = (AssetTransfer) rfdIterator.next();  if (assetTransfer.getAsset().equals(selfOrg)) { assetTransfer.indicateAssetChange(); publishChange(assetTransfer, changeReports); } } }
resendAssetTransfers(selfOrg, myRFSAssetTransfers.getCollection(), changeReports); resendAssetTransfers(selfOrg, myRFDAssetTransfers.getCollection(), changeReports); }
  private void resendAssetTransfers() {    // BOZO - No support for removal of a self Org    Collection changes = mySelfOrgs.getChangedCollection();    if ((changes == null) ||         (changes.isEmpty())) {      return;    }    for (Iterator iterator = changes.iterator();         iterator.hasNext();) {      Organization selfOrg = (Organization) iterator.next();      // Determine whether or not asset transfers for the self org should be       // resent.  At this point, do not resend just because the relationship       // schedule changed. Warning - legtimate change will get lost if batched      // with relationship schedule changes unless a separate change report is       // generated.      Collection changeReports = mySelfOrgs.getChangeReports(selfOrg);      boolean resendRequired = false;      if ((changeReports != null) && !changeReports.isEmpty()) {        for (Iterator reportIterator = changeReports.iterator();             reportIterator.hasNext();) {          ChangeReport report = (ChangeReport) reportIterator.next();          if (!(report instanceof RelationshipSchedule.RelationshipScheduleChangeReport)) {            resendRequired = true;            break;          }        }      } else {        resendRequired = true;      }      if (resendRequired) {        Collection rfsAssetTransfers = myRFSAssetTransfers.getCollection();        Collection rfdAssetTransfers = myRFDAssetTransfers.getCollection();        for (Iterator rfsIterator = rfsAssetTransfers.iterator();             rfsIterator.hasNext();) {          AssetTransfer assetTransfer = (AssetTransfer) rfsIterator.next();                    if (assetTransfer.getAsset().equals(selfOrg)) {            assetTransfer.indicateAssetChange();            publishChange(assetTransfer, changeReports);          }        }                for (Iterator rfdIterator = rfdAssetTransfers.iterator();             rfdIterator.hasNext();) {          AssetTransfer assetTransfer = (AssetTransfer) rfdIterator.next();                    if (assetTransfer.getAsset().equals(selfOrg)) {            assetTransfer.indicateAssetChange();            publishChange(assetTransfer, changeReports);          }        }      }     }  }