code: private static List<TopicPartition> convertKafkaPartitions(List<KafkaTopicPartitionState<TopicPartition>> partitions) {
  		ArrayList<TopicPartition> result = new ArrayList<>(partitions.size());
  		for (KafkaTopicPartitionState<TopicPartition> p : partitions) {
  			result.add(p.getKafkaPartitionHandle());
  		}
  		return result;
  	}
docs: ------------------------------------------------------------------------