def METHOD_NAME(self, obj):
    """
    Called as each object is handled. Adds an XLIFF ``<file>``-block with meta-information about the object and an
    additional ``<body>`` for XLIFF version 1.2.
    :param obj: The page translation object which is started
    :type obj: ~integreat_cms.cms.models.pages.page_translation.PageTranslation
    :raises ~django.core.serializers.base.SerializationError: If the serialization fails
    """
    if not (
        source_language := obj.page.region.get_source_language(obj.language.slug)
    ):
        raise base.SerializationError(
            "The page translation is in the region's default language."
        )
    self.xml.startElement(
        "file",
        {
            "original": str(obj.page.id),
            "datatype": "plaintext",
            "source-language": source_language.bcp47_tag,
            "target-language": obj.language.bcp47_tag,
        },
    )
    # This header is required to make sure the XLIFF file can be segmented with MemoQ's WPML filter to get the same
    # translation memory as with the legacy export via WordPress/WPML. See also:
    # https://docs.memoq.com/current/en/Places/wpml-xliff-filter.html
    self.xml.startElement("header", {})
    self.xml.startElement("phase-group", {})
    self.xml.addQuickElement(
        "phase",
        attrs={
            "phase-name": "shortcodes",
            "process-name": "Shortcodes identification",
        },
    )
    self.xml.addQuickElement(
        "phase", attrs={"phase-name": "post_type", "process-name": "Post type"}
    )
    self.xml.endElement("phase-group")
    self.xml.endElement("header")
    self.xml.startElement("body", {})