code: @Override
      public void writeObject(Map<Object, Object> map) {
          if (!checkWriteReference(map)) {
              storeReference(map);
              buf.put(AMF.TYPE_OBJECT);
              boolean isBeanMap = (map instanceof BeanMap);
              for (Map.Entry<Object, Object> entry : map.entrySet()) {
                  if (isBeanMap && "class".equals(entry.getKey())) {
                      continue;
                  }
                  putString(entry.getKey().toString());
                  Serializer.serialize(this, entry.getValue());
              }
              buf.put(AMF.END_OF_OBJECT_SEQUENCE);
          }
      }
docs: {@inheritDoc}