{
throw new RuntimeException("No such installed plugin [" + pluginName + "]");
}
PluginEntry installedPlugin = InstalledPluginRegistry.get(plugin);
InstalledPluginRegistry.remove(installedPlugin);
pluginRemovedEvent.fire(new PluginRemoved(installedPlugin));
if (!InstalledPluginRegistry.has(plugin))
{
ShellMessages.success(out, "Successfully removed [" + pluginName + "]");
restart();
}