@GET
 @Path("/{triggerId}/dampenings/mode/{triggerMode}")
 @Produces(APPLICATION_JSON)
 @ApiOperation(value = "Get a dampening using triggerId and triggerMode")
 @ApiResponses(
     value = {
       @ApiResponse(code = 200, message = "Success"),
       @ApiResponse(code = 500, message = "Internal server error")
     })
 public Response getTriggerModeDampenings(
     @ApiParam(value = "Trigger definition id to be retrieved", required = true) //
         @PathParam("triggerId") //
         final String triggerId, //
     @ApiParam(value = "Trigger mode", required = true) //
         @PathParam("triggerMode") //
         final Mode triggerMode) {
   try {
     Collection<Dampening> dampenings =
         definitions.getTriggerDampenings(tenantId, triggerId, triggerMode);
     if (log.isDebugEnabled()) {
       log.debug("Dampenings: " + dampenings);
     }
     return ResponseUtil.ok(dampenings);
   } catch (Exception e) {
     log.debug(e.getMessage(), e);
     return ResponseUtil.internalError(e.getMessage());
   }
 }
 @GET
 @Path("/{triggerId}/dampenings")
 @Produces(APPLICATION_JSON)
 @ApiOperation(value = "Get all Dampenings for a Trigger (1 Dampening per mode).")
 @ApiResponses(
     value = {
       @ApiResponse(code = 200, message = "Success"),
       @ApiResponse(code = 500, message = "Internal server error")
     })
 public Response getTriggerDampenings(
     @ApiParam(value = "Trigger definition id to be retrieved", required = true)
         @PathParam("triggerId")
         final String triggerId) {
   try {
     Collection<Dampening> dampenings =
         definitions.getTriggerDampenings(tenantId, triggerId, null);
     log.debug("Dampenings: " + dampenings);
     return ResponseUtil.ok(dampenings);
   } catch (Exception e) {
     log.debug(e.getMessage(), e);
     return ResponseUtil.internalError(e.getMessage());
   }
 }