protected boolean handleRemoteEvent(EventContext pc){
  Event event=pc.getEvent();
  boolean forUs=false;
  String destination=event.to();
  if (destination != null) {
    forUs=destination.equals(getId());
    if (!forUs) {
      forwardTo(event,destination);
    }
  }
 else {
    Set<String> forwardTo=event.getForwardTo();
    if (!forwardTo.isEmpty()) {
      forUs=forwardTo.remove(getId());
      if (forwardTo.size() > 0) {
        forwardTo(event,forwardTo);
      }
    }
 else {
      forUs=true;
    }
  }
  return forUs;
}

protected boolean handleRemoteEvent ( EventContext pc ) { Event event = pc . getEvent ( ) ; boolean forUs = false ; String destination = event . to ( ) ; if ( destination != null ) { forUs = destination . equals ( getId ( ) ) ; if ( ! forUs ) { forwardTo ( event , destination ) ; } } else { Set < String > forwardTo = event . getForwardTo ( ) ; if ( ! forwardTo . isEmpty ( ) ) { forUs = forwardTo . remove ( getId ( ) ) ; if ( forwardTo . size ( ) > 0 ) { forwardTo ( event , forwardTo ) ; } } else { forUs = true ; } } return forUs ; }
handle a remote event
