public List<OutgoingBatch> filterBatchesForInactiveChannels(){
  List<OutgoingBatch> filtered=new ArrayList<OutgoingBatch>();
  for (  OutgoingBatch batch : batches) {
    if (!activeChannelIds.contains(batch.getChannelId())) {
      filtered.add(batch);
    }
  }
  batches.removeAll(filtered);
  return filtered;
}

public List < OutgoingBatch > filterBatchesForInactiveChannels ( ) { List < OutgoingBatch > filtered = new ArrayList < OutgoingBatch > ( ) ; for ( OutgoingBatch batch : batches ) { if ( ! activeChannelIds . contains ( batch . getChannelId ( ) ) ) { filtered . add ( batch ) ; } } batches . removeAll ( filtered ) ; return filtered ; }
removes all batches that are not associated with an ' activechannel ' .
