def METHOD_NAME(package, prop):
    name = prop.children[0].attributes['name']
    values = {
        "name": name,
        "values": sorted(set(map(operator.attrgetter("text"), prop.children[0].children)))
    }
    assign_and_validate(enumeration_properties, name, values)
    return name    