def find_objects(uid=None):
<EOL>objects = []<EOL>obj = get_object_by_uid(uid) or get_object_by_request()<EOL>if obj:<EOL><INDENT>objects.append(obj)<EOL><DEDENT>else:<EOL><INDENT>records = req.get_request_data()<EOL>for record in records:<EOL><INDENT>obj = get_object_by_record(record)<EOL>if obj is None:<EOL><INDENT>continue<EOL><DEDENT>objects.append(obj)<EOL><DEDENT><DEDENT>return objects<EOL>
Find the object by its UID

    1. get the object from the given uid
    2. fetch objects specified in the request parameters
    3. fetch objects located in the request body

    :param uid: The UID of the object to find
    :type uid: string
    :returns: List of found objects
    :rtype: list