code: @Override
      public void writeRecordSet(RecordSet recordset) {
          if (!checkWriteReference(recordset)) {
              storeReference(recordset);
              // Write out start of object marker
              buf.put(AMF.TYPE_CLASS_OBJECT);
              putString("RecordSet");
              // Serialize
              Map<String, Object> info = recordset.serialize();
              // Write out serverInfo key
              putString("serverInfo");
              // Serialize
              Serializer.serialize(this, info);
              // Write out end of object marker
              buf.put(AMF.END_OF_OBJECT_SEQUENCE);
          }
      }
docs: {@inheritDoc}