if (isDataMovementEvent) {
DataMovementEvent dmEvent = (DataMovementEvent) event;
e = new DataMovementEvent(dmEvent.getSourceIndex(),
entry.getKey().intValue(), dmEvent.getVersion(), dmEvent.getUserPayload());
} else {
InputFailedEvent ifEvent = ((InputFailedEvent) event);
e = new InputFailedEvent(entry.getKey().intValue(), ifEvent.getVersion());
}
tezEventToSend = new TezEvent(e, tezEvent.getSourceInfo());
}
tezEventToSend.setDestinationInfo(destinationMetaInfo);
for(Integer destTaskIndex : entry.getValue()) {