@Override
    public List<Byte> serializeToByteList() throws IOException {
        BitWriter bitWriter = null;
        if (this.guid.equals(GuidUtil.emptyGuid())) {
            bitWriter = new BitWriter(1);
            bitWriter.appendUInit32(0, 8);
        } else {
            bitWriter = new BitWriter(25);
            bitWriter.appendUInit32(128, 8);
            bitWriter.appendGUID(this.guid);
            bitWriter.appendUInt64(this.value, 64);
        }

        return bitWriter.getByteList();
    }
This method is used to convert the element of SerialNumber basic object into a byte List.

@return Return the byte list which store the byte information of SerialNumber.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/basic/SerialNumber.java