docs: public static DataMedia<? extends DataMediaSource> findDataMedia(Pipeline pipeline, Long id) {
          Assert.notNull(pipeline);
          for (DataMediaPair pair : pipeline.getPairs()) {
              if (pair.getSource().getId().equals(id)) {
                  return pair.getSource();
              } else if (pair.getTarget().getId().equals(id)) {
                  return pair.getTarget();
              }
          }
  
          throw new ConfigException("no such DataMedia , the tableId = " + id);
      }