WGAPlugin plugin = pluginSet.getPluginByID(id);
if (plugin != null) {
if (!plugin.isActive()) {
List<WorkspaceOperation> ops = new ArrayList<WorkspaceOperation>();
ops.add(new ActivatePluginOperation(id, WGAPluginSet.UPDATESTRATEGY_UPDATE_KEEP_DATA));
pluginSet.performOperations(ops);
}
}
} catch (Exception e) {
throw new WGAServiceException("Activation of plugin '" + pluginInfo.getUniqueName() + "' failed.", e);
}