''

@classmethod
def _value_record_references(cls, all_references, v, result):

    if (v is None):
        return
    if (isinstance(v, dict) and set(['id', 'type']).issubset(set(v.keys()))):
        if (v['id'] not in result):
            ref = all_references[v['id']]
            result[v['id']] = ref
            Document._value_record_references(all_references, ref['attributes'], result)
    elif isinstance(v, (list, tuple)):
        for elem in v:
            Document._value_record_references(all_references, elem, result)
    elif isinstance(v, dict):
        for (k, elem) in v.items():
            Document._value_record_references(all_references, elem, result)
