if (!Permissions.isPermitted(RestPermissions.OUTPUTS_EDIT)) {
return redirect(routes.StartpageController.redirect());
}
final Form<OutputLaunchRequest> outputForm = form(OutputLaunchRequest.class).bindFromRequest();
final OutputLaunchRequest request = outputForm.get();
final Output output = outputService.create(request);
flash("success", "Output \"" + output.getTitle() + "\" has been created!");
return redirect(routes.OutputsController.index());