PluginInstallerGBean installer = new PluginInstallerGBean(targetRepositoryPath, targetServerPath, servers, kernel, getClass().getClassLoader());
installer.install(pluginList, sourceRepo, true, null, null, downloadPoller);
if (overrides != null) {
for (Override override: this.overrides) {
AttributesType attributes = override.getOverrides(overridesDir);
installer.mergeOverrides(override.getServer(), attributes);
}
}
} finally {
kernel.shutdown();
}