id.setUniqueName(pluginInfo.getUniqueName());
id.setVersion(toConfigVersionBean(pluginInfo.getVersion()));
WGAPlugin plugin = pluginSet.getPluginByID(id);
if (plugin != null) {
if (plugin.isActive()) {
pluginSet.deactivatePlugin(plugin);
}
}
} catch (Exception e) {
throw new WGAServiceException("Deactivation of plugin '" + pluginInfo.getUniqueName() + "' failed.", e);
}