}
public String install(Extension ext, File uploadedFile, String user)
{
String pluginKey = pluginSystemManager.install(uploadedFile, ext != null ? ext.getKey() : null, user);
eventPublisher.publish(new ExtensionInstalledEvent(pluginKey)
.setUserName(user)
.setUserEmail(userManager.getUserProfile(user).getEmail())
.setMessage("Installed from a JAR upload"));
return pluginKey;
}