code: public Integer getPartition() {
          Object partition = getHeader(KafkaMessageHeaders.PARTITION);
  
          if (partition != null) {
              return TypeConversionUtils.convertIfNecessary(partition, Integer.class);
          }
  
          return null;
      }
docs: Gets the Kafka partition header.
  @return