code: public void write(WritableByteChannel channel) throws IOException {
          logger.debug("Writing> {}", this);
          for (Field field : fields) {
              field.write(channel);
          }
      }
docs: Writes the message to the specified channel, for example when creating metadata cache files.
  
  @param channel the channel to which it should be written
  
  @throws IOException if there is a problem writing to the channel