def get_as_map_with_default(self, key, default_value):
        """
        Converts map element into an AnyValueMap or returns default value if conversion is not possible.

        :param key: a key of element to get.

        :param default_value: the default value

        :return: AnyValueMap value of the element or default value if conversion is not supported.
        """
        value = self.get_as_nullable_map(key)
        return MapConverter.to_map_with_default(value, default_value)