@Override
    public List<Byte> serializeToByteList() throws TikaException, IOException {
        List<Byte> byteList = new ArrayList<>(this.revisionManifest.serializeToByteList());

        if (this.revisionManifestRootDeclareList != null) {
            for (RevisionManifestRootDeclare revisionManifestRootDeclare : this.revisionManifestRootDeclareList) {
                byteList.addAll(revisionManifestRootDeclare.serializeToByteList());
            }
        }

        if (this.revisionManifestObjectGroupReferences != null) {
            for (RevisionManifestObjectGroupReferences revisionManifestObjectGroupReferences :
                    this.revisionManifestObjectGroupReferences) {
                byteList.addAll(revisionManifestObjectGroupReferences.serializeToByteList());
            }
        }

        return byteList;
    }
Used to convert the element into a byte List.

@return A Byte list
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/RevisionManifestDataElementData.java