'In case there is not formats defined or if the name format is
undefined
:param statement: AttributeStatement instance
:return: A dictionary with names and values'

def fail_safe_fro(self, statement):

    result = {}
    for attribute in statement.attribute:
        if (attribute.name_format and (attribute.name_format != NAME_FORMAT_UNSPECIFIED)):
            continue
        try:
            name = attribute.friendly_name.strip()
        except AttributeError:
            name = attribute.name.strip()
        result[name] = []
        for value in attribute.attribute_value:
            if (not value.text):
                result[name].append('')
            else:
                result[name].append(value.text.strip())
    return result
