AddonId id = AddonId.from(coordinate.getGroupId() + ":" + coordinate.getArtifactId(), coordinate.getVersion());
RemoveRequest removeRequest = addonManager.remove(id);
removeRequest.perform();
Addons.waitUntilStopped(registry.getAddon(id));
InstallRequest installRequest = addonManager.install(id);
installRequest.perform();
return Results.success("Addon " + coordinate.toString() + " was installed successfully.");
}
catch (Throwable t)
{
return Results.fail("Addon " + coordinate.toString() + " could not be installed.", t);