public void loadJsPlugins(Collection<JsPluginScript> scripts, boolean save) {
        if (!isJsEnabled) {
            throw new UnsupportedOperationException(
                    "JavaScript plugins are disabled because the classes of GraalJS are not loaded");
        }
        if (!allowSaveJsPlugins && save) {
            throw new FeatureDisabledException(
                    "Cannot save JavaScript plugins since it has been disabled");
        }
        if (CollectionUtil.isEmpty(scripts)) {
            return;
        }
        for (JsPluginScript script : scripts) {
            String code = script.code();
            Plugin plugin = loadJsPlugin(code, null);
            if (save) {
                Path path = saveJsPlugin(script.fileName(), code);
                plugin.descriptor()
                        .setPath(path);
            }
        }
    }
@implNote Start plugins after all beans are ready so that plugins can get any bean when
          starting.
turms-server-common/src/main/java/im/turms/server/common/infra/plugin/PluginManager.java