if (id == JProtocol.PAYLOAD_ID && displayPayload == false) {
continue;
}
try {
final JHeader header = headers.getHeader(id);
final Detail headerDetail =
(detailsPerHeader[id] == null) ? detail : detailsPerHeader[id];
packet.getHeaderByIndex(i, header);
if (header.getLength() == 0) {
continue;
}
format(header, headerDetail);
} catch (UnregisteredHeaderException e) {