def _read_ref(self, result, obj_uuid, ref_obj_type, ref_uuid, ref_data_json):
    if (('%s_refs' % ref_obj_type) not in result):
        result[('%s_refs' % ref_obj_type)] = []
    ref_data = ref_data_json
    ref_info = {}
    try:
        ref_info['to'] = self.uuid_to_fq_name(ref_uuid)
    except NoIdError:
        ref_info['to'] = ['ERROR']
    if ref_data:
        try:
            ref_info['attr'] = ref_data['attr']
        except KeyError:
            ref_info['attr'] = ref_data
    ref_info['uuid'] = ref_uuid
    result[('%s_refs' % ref_obj_type)].append(ref_info)
def _read_ref(self, result, obj_uuid, ref_obj_type, ref_uuid, ref_data_json):
    if (('%s_refs' % ref_obj_type) not in result):
        result[('%s_refs' % ref_obj_type)] = []
    ref_data = ref_data_json
    ref_info = {}
    try:
        ref_info['to'] = self.uuid_to_fq_name(ref_uuid)
    except NoIdError:
        ref_info['to'] = ['ERROR']
    if ref_data:
        try:
            ref_info['attr'] = ref_data['attr']
        except KeyError:
            ref_info['attr'] = ref_data
    ref_info['uuid'] = ref_uuid
    result[('%s_refs' % ref_obj_type)].append(ref_info)