private void writeMetadata(DataWriter out) throws IOException {
        SerializedFileMetadata metadata = serialized.metadata();
        SerializedFileHeader header = serialized.header();

        DataBlock metadataBlock = serialized.metadataBlock();
        metadataBlock.markBegin(out);
        metadata.version(header.version());
        out.writeStruct(metadata);
        metadataBlock.markEnd(out);
        L.log(Level.FINER, "metadataBlock: {0}", metadataBlock);
    }
@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-core/src/main/java/info/ata4/junity/serialize/SerializedFileWriter.java