private List<BesuPlugin> detectPlugins(final PluginConfiguration config) {
    ClassLoader pluginLoader =
        pluginDirectoryLoader(config.getPluginsDir()).orElse(getClass().getClassLoader());
    ServiceLoader<BesuPlugin> serviceLoader = ServiceLoader.load(BesuPlugin.class, pluginLoader);
    return StreamSupport.stream(serviceLoader.spliterator(), false).toList();
  }
Add service.

@param <T> the type parameter
@param serviceType the service type
@param service the service
app/src/main/java/org/hyperledger/besu/services/BesuPluginContextImpl.java