def METHOD_NAME(
        self, attack_pattern: _ATTACK_PATTERN_TYPING):
    misp_object = self._create_misp_object('attack-pattern', attack_pattern)
    for key, mapping in self._mapping.attack_pattern_object_mapping().items():
        if hasattr(attack_pattern, key):
            self._populate_object_attributes(
                misp_object, mapping, getattr(attack_pattern, key)
            )
    if hasattr(attack_pattern, 'external_references'):
        for reference in attack_pattern.external_references:
            misp_object.add_attribute(
                **self._parse_attack_pattern_reference(reference)
            )
    self.main_parser._add_misp_object(misp_object, attack_pattern)