def METHOD_NAME(entity, name, new_config, avi_config, depth, skip_ref_objects=skip_ref_object_list):
    """
    Method to search referenced object
    :param entity: object type
    :param name: object name
    :param new_config: filtered config
    :param avi_config: full config
    :param depth: Recursion depth to determine level in the vs reference tree
    :param skip_ref_objects: comma separated names of objects ref to be skipped
    """
    avi_conf_key = path_key_map[entity]
    found_obj_list = avi_config.get(avi_conf_key, [])
    found_obj = [obj for obj in found_obj_list if obj['name'] == name]
    if found_obj:
        found_obj = found_obj[0]
        print('| '*depth + '|- %s(%s)' % (name, path_key_map[entity]))
    elif entity in ['applicationprofile', 'networkprofile', 'healthmonitor',
                    'sslkeyandcertificate', 'sslprofile']:
        if str.startswith(str(name), 'System-'):
            return
    elif entity == 'vrfcontext':
        return
    else:
        print('WARNING: Reference not found for %s with name %s' % (entity, name))
        return
    if avi_conf_key in new_config:
        if not any(d['name'] == found_obj['name'] for d in
                   new_config[avi_conf_key]):
            new_config[avi_conf_key].append(found_obj)
    else:
        new_config[avi_conf_key] = [found_obj]
    depth += 1
    find_and_add_objects(found_obj, avi_config, new_config, depth, skip_ref_objects=skip_ref_objects)