docs: public static ChannelHeader createChannelHeader(HeaderType type, String txID, String channelID, long epoch,
                                                      Timestamp timeStamp, ChaincodeHeaderExtension chaincodeHeaderExtension,
                                                      byte[] tlsCertHash) {
  
          if (isDebugLevel) {
              String tlschs = "";
              if (tlsCertHash != null) {
                  tlschs = DatatypeConverter.printHexBinary(tlsCertHash);
  
              }
              logger.debug(format("ChannelHeader: type: %s, version: 1, Txid: %s, channelId: %s, epoch %d, clientTLSCertificate digest: %s",
                      type.name(), txID, channelID, epoch, tlschs));
  
          }
  
          ChannelHeader.Builder ret = ChannelHeader.newBuilder()
                  .setType(type.getNumber())
                  .setVersion(1)
                  .setTxId(txID)
                  .setChannelId(channelID)
                  .setTimestamp(timeStamp)
                  .setEpoch(epoch);
          if (null != chaincodeHeaderExtension) {
              ret.setExtension(chaincodeHeaderExtension.toByteString());
          }
  
          if (tlsCertHash != null) {
              ret.setTlsCertHash(ByteString.copyFrom(tlsCertHash));
          }
  
          return ret.build();
  
      }