docs: protected void printHeaders(final StringBuilder sb,
                                final long id,
                                final String prefix,
                                final MultivaluedMap<String, String> headers) {
   
          getSortedHeaders(headers.entrySet()).forEach(h -> {
  
              final List<?> values = h.getValue();
              final String header = h.getKey();
              final boolean isMaskedHeader = maskedHeaderNames.contains(header.toLowerCase());
  
              if (values.size() == 1) {
                  String value = (isMaskedHeader ? "********" : values.get(0).toString());
                  appendId(sb, id).append(prefix).append(header).append(": ").append(value).append('\n');
              } else {
                  
                  final StringBuilder headerBuf = new StringBuilder();
                  for (final Object value : values) {
                      if (headerBuf.length() == 0) {
                          headerBuf.append(", ");
                      }
  
                      headerBuf.append(isMaskedHeader ? "********" : value.toString());
                  }
          
                  appendId(sb, id).append(prefix).append(header).append(": ").append(headerBuf.toString()).append('\n');
              }
          });
      }