protected static boolean hasRepresentation(
     final String operation,
     Map<Report, List<Aggregation>> reportAggregationMap,
     final Class<?> representationClass,
     final Object... representationArgs) {
   return Projections.any(
       Projections.notNull(reportAggregationMap.values()),
       new Projections.Condition<List<Aggregation>>() {
         @Override
         public boolean accept(List<Aggregation> aggregations) {
           return Projections.any(
               Projections.notNull(aggregations),
               new Projections.Condition<Aggregation>() {
                 @Override
                 public boolean accept(Aggregation aggregation) {
                   OperationStats operationStats =
                       aggregation.totalStats.getOperationsStats().get(operation);
                   return operationStats != null
                       && operationStats.getRepresentation(representationClass, representationArgs)
                           != null;
                 }
               });
         }
       });
 }