@GET
 @ApiOperation(
     value = "Get executor group statistics",
     notes = "Returns counts of queued and executing workflow instances.")
 public StatisticsResponse queryStatistics() {
   return statisticsConverter.convert(statisticsService.getStatistics());
 }
 @GET
 @Path("/workflow/{type}")
 @ApiOperation("Get workflow definition statistics")
 public WorkflowDefinitionStatisticsResponse getStatistics(
     @PathParam("type") @ApiParam(value = "Workflow definition type", required = true) String type,
     @QueryParam("createdAfter")
         @ApiParam(value = "Include only workflow instances created after given time")
         DateTime createdAfter,
     @QueryParam("createdBefore")
         @ApiParam("Include only workflow instances created before given time")
         DateTime createdBefore,
     @QueryParam("modifiedAfter")
         @ApiParam("Include only workflow instances modified after given time")
         DateTime modifiedAfter,
     @QueryParam("modifiedBefore")
         @ApiParam("Include only workflow instances modified before given time")
         DateTime modifiedBefore) {
   return statisticsConverter.convert(
       statisticsService.getWorkflowDefinitionStatistics(
           type, createdAfter, createdBefore, modifiedAfter, modifiedBefore));
 }