docs: @Override
    public ByteBuffer serialize(T object) throws SerializerException {
      try {
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        try (ObjectOutputStream oout = getObjectOutputStream(bout)) {
          oout.writeObject(object);
        }
        return ByteBuffer.wrap(bout.toByteArray());
      } catch (IOException e) {
        throw new SerializerException(e);
      }
    }