I am trying to serialize a Java object in such a way that its content can be read by an existing reader.cc module, which currently reads binaries generated