public List<Order> findByTimeRange(URI tenantId, Date startTime, Date endTime) {
   if (tenantId == null) {
     return Lists.newArrayList();
   }
   return TenantUtils.filter(findByTimeRange(startTime, endTime), tenantId.toString());
 }
 public List<Order> findByOrderStatus(String tenant, OrderStatus orderStatus) {
   if (StringUtils.isBlank(tenant)) {
     return Lists.newArrayList();
   }
   return TenantUtils.filter(findByOrderStatus(orderStatus), tenant);
 }