public void processDispatch(UniformPair<EventBean[]> events){
  if (!forClauseDelivery) {
    dispatchInternal(events);
    return;
  }
  if ((groupDeliveryExpressions == null) || (groupDeliveryExpressions.length == 0)) {
    UniformPair<EventBean[]> todeliver=new UniformPair<EventBean[]>(null,null);
    if (events != null) {
      if (events.getFirst() != null) {
        for (        EventBean theEvent : events.getFirst()) {
          todeliver.setFirst(new EventBean[]{theEvent});
          dispatchInternal(todeliver);
        }
        todeliver.setFirst(null);
      }
      if (events.getSecond() != null) {
        for (        EventBean theEvent : events.getSecond()) {
          todeliver.setSecond(new EventBean[]{theEvent});
          dispatchInternal(todeliver);
        }
        todeliver.setSecond(null);
      }
    }
    return;
  }
  Map<Object,UniformPair<EventBean[]>> groups;
  try {
    groups=getGroupedResults(events);
  }
 catch (  RuntimeException ex) {
    log.error("Unexpected exception evaluating grouped-delivery expressions: " + ex.getMessage() + ", delivering ungrouped",ex);
    dispatchInternal(events);
    return;
  }
  for (  Map.Entry<Object,UniformPair<EventBean[]>> group : groups.entrySet()) {
    dispatchInternal(group.getValue());
  }
}

public void processDispatch ( UniformPair < EventBean [ ] > events ) { if ( ! forClauseDelivery ) { dispatchInternal ( events ) ; return ; } if ( ( groupDeliveryExpressions == null ) || ( groupDeliveryExpressions . length == 0 ) ) { UniformPair < EventBean [ ] > todeliver = new UniformPair < EventBean [ ] > ( null , null ) ; if ( events != null ) { if ( events . getFirst ( ) != null ) { for ( EventBean theEvent : events . getFirst ( ) ) { todeliver . setFirst ( new EventBean [ ] { theEvent } ) ; dispatchInternal ( todeliver ) ; } todeliver . setFirst ( null ) ; } if ( events . getSecond ( ) != null ) { for ( EventBean theEvent : events . getSecond ( ) ) { todeliver . setSecond ( new EventBean [ ] { theEvent } ) ; dispatchInternal ( todeliver ) ; } todeliver . setSecond ( null ) ; } } return ; } Map < Object , UniformPair < EventBean [ ] > > groups ; try { groups = getGroupedResults ( events ) ; } catch ( RuntimeException ex ) { log . error ( "Unexpected exception evaluating grouped-delivery expressions: " + ex . getMessage ( ) + ", delivering ungrouped" , ex ) ; dispatchInternal ( events ) ; return ; } for ( Map . Entry < Object , UniformPair < EventBean [ ] > > group : groups . entrySet ( ) ) { dispatchInternal ( group . getValue ( ) ) ; } }
indicate an outbound result .
