code: private void add(Map<String, List<String>> partition, PartitionEntry entry) {
          String tenantId = entry.getTenantId();
          String triggerId = entry.getTriggerId();
          if (partition.get(tenantId) == null) {
              partition.put(tenantId, new ArrayList<>());
          }
          partition.get(tenantId).add(triggerId);
      }
docs: /*
  Auxiliary function to transform a PartitionEntry object into a plain map representation.