public static List<String> checkIsLegalMeasurementsAndUpdate(List<String> measurements)
      throws IllegalPathException {
    if (measurements == null) {
      return null;
    }
    List<String> res = new ArrayList<>();
    for (String measurement : measurements) {
      if (measurement != null) {
        res.add(PathUtils.isLegalPath(measurement)[0]);
      }
    }
    return res;
  }
check whether measurement is legal according to syntax convention measurement could be like a.b
(more than one node name), in template?
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/PathUtils.java