def METHOD_NAME(content, filter_spec_set, max_objects=None):
    """Retrieve properties from a vCenter in an efficient manner.
    :param content: Service content from vcenter.RetrieveContent() call
    :param max_objects: An optional maximum number of objects to return in
                        in a single page
    :returns: Array of Object Content
    """
    options = vmodl.query.PropertyCollector.RetrieveOptions(maxObjects=max_objects)
    retrieve_properties_ex = content.propertyCollector.RetrievePropertiesEx
    continue_retrieve_properties_ex = (
        content.propertyCollector.ContinueRetrievePropertiesEx
    )
    objects = []
    result = retrieve_properties_ex(specSet=filter_spec_set, options=options)
    while result is not None:
        objects.extend(result.objects)
        token = result.token
        if token is None:
            break
        result = continue_retrieve_properties_ex(token)
    return objects