final String region = config.getRegion();
// Construct the configuration
final File pluginsDirectory = home.getPluginsDirectory();
File pluginCache = getPluginCacheFolder(region, home.getPluginsCacheDirectory());
PluginsConfiguration config = new PluginsConfigurationBuilder().pluginDirectory(pluginsDirectory)
.packageScannerConfiguration(scannerConfig)
.hotDeployPollingFrequency(PLUGIN_UPDATE_FREQUENCY, TimeUnit.SECONDS)
.hostComponentProvider(host).moduleDescriptorFactory(modules).osgiPersistentCache(pluginCache).build();
// Start the plugin framework