code: public Map<String, List<String>> getNodePartition(Map<PartitionEntry, Integer> partition, Integer node) {
          Map<String, List<String>> nodePartition = new HashMap<>();
          if (partition != null) {
              for (Entry<PartitionEntry, Integer> entry : partition.entrySet()) {
                  if (entry.getValue().equals(node)) {
                      add(nodePartition, entry.getKey());
                  }
              }
          }
          return nodePartition;
      }
docs: Return the entries assigned for a node into a partition.
  The returned entries are represented by a Map<String, List<String>> where:
  - key is a tenantId
  - value is a List of triggersId assigned to the tenant
  
  @param partition the partition used internally
  @param node the node to filter
  @return a map representing the entries for given node