docs: public void write(DataOutputStream stream, byte sequenceId) throws IOException {
          this.sequenceId = sequenceId;
          stream.write(PREAMBLE);
          stream.write(sequenceId);
          stream.write(action.getCode());
          stream.write(buffer.toArray());
          stream.write(Constants.EOD);
      }