code: public void serialize(RevisionDataOutput dataOutput, T object) throws IOException {
          serialize(dataOutput.getBaseStream(), object);
      }
docs: Serializes the given object to the given RevisionDataOutput. This overload is usually invoked for serializing
  nested classes or collections.
  
  @param dataOutput The RevisionDataOutput to serialize to.
  @param object     The object to serialize.
  @throws IOException If an IO Exception occurred.