private Event parseRootSourceEvent(Event sourceEvent) {
    return sourceEvent instanceof UserDefinedEvent
        ? ((UserDefinedEvent) sourceEvent).getSourceEvent()
        : sourceEvent;
  }
Generate a user defined event without source event.
iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/event/UserDefinedEvent.java