code: public static DataMediaPair findDataMediaPairBySourceName(Pipeline pipeline, String namespace, String name,
                                                                boolean notExistReturnNull) {
          for (DataMediaPair pair : pipeline.getPairs()) {
              if (isMatch(pair.getSource(), namespace, name)) {
                  return pair;
              }
          }
  
          if (notExistReturnNull) {
              return null;
          } else {
              throw new ConfigException("no such DataMedia , the namespace = " + namespace + " name = " + name);
          }
      }
docs: 根据NameSpace和Name得到对应的DataMediaPair