code: @SuppressWarnings("unchecked")
      public static <E> void serialize(E object, OutputStream os) throws IOException {
          mapperFor((Class<E>)object.getClass()).serialize(object, os);
      }
docs: Serialize an object to an OutputStream.
  
  @param object The object to serialize.
  @param os The OutputStream being written to.