ProcessResult response = new ProcessResult();
MaintenanceEventRT rt = RTMDefinition.instance.getRunningMaintenanceEvent(id);
boolean activated = false;
if (rt == null)
response.addMessage(new TranslatableMessage("maintenanceEvents.toggle.disabled"));
else
activated = rt.toggle();
response.addData("activated", activated);