public static String getCoreJarFileName(String path, String prefix, String pluginLoadMode) throws Exception {
        String coreJarFileName = null;
        File pluginDir = new File(path);
        if (pluginDir.exists() && pluginDir.isDirectory()){
            File[] jarFiles = pluginDir.listFiles((dir, name) ->
                    name.toLowerCase().startsWith(prefix) && name.toLowerCase().endsWith(".jar"));

            if (jarFiles != null && jarFiles.length > 0){
                coreJarFileName = jarFiles[0].getName();
            }
        }

        if (StringUtils.isEmpty(coreJarFileName) && !pluginLoadMode.equalsIgnoreCase(EPluginLoadMode.LOCALTEST.name())){
            throw new Exception("Can not find core jar file in path:" + path);
        }

        return coreJarFileName;
    }
build dirty data url from plugin path

@param dirtyType      type of dirty type
@param localPath      local path
@param remotePath     remote path
@param pluginLoadMode load plugin mode
@return dirty plugin url
@throws Exception exception
core/src/main/java/com/dtstack/flink/sql/util/PluginUtil.java