code: public void writeObject(Object object)
          throws IOException
      {
          if (object == null) {
              writeNull();
              return;
          }
  
          Serializer serializer;
  
          serializer = _serializerFactory.getSerializer(object.getClass());
  
          serializer.writeObject(object, this);
      }
docs: Writes any object to the output stream.