public void validate(Model model, String udfName, String jarName, String jarMD5)
      throws UDFManagementException {
    if (udfTable.containsUDF(model, udfName)
        && udfTable.getUDFInformation(model, udfName).isAvailable()) {
      throw new UDFManagementException(
          String.format("Failed to create UDF [%s], the same name UDF has been created", udfName));
    }

    if (existedJarToMD5.containsKey(jarName) && !existedJarToMD5.get(jarName).equals(jarMD5)) {
      throw new UDFManagementException(
          String.format(
              "Failed to create UDF [%s], the same name Jar [%s] but different MD5 [%s] has existed",
              udfName, jarName, jarMD5));
    }
  }
Validate whether the UDF can be created.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/UDFInfo.java