'Given a list of objects, return a list of tuples where the first item is the original object and second item is the
converted Sentry authorizable. Any non-Sentry objects are filtered out of the returned dictionary.
:param objects: original list of objects to convert to Sentry authorizables using they key function
:param key: a function that will be applied to each object to convert to a Sentry format
:return: a list of tuples (object, authorizable)'

def _to_sentry_authorizables(self, objects, key):

    def add_default_server(object):
        if (('db' in object) and (not object.get('server'))):
            object.update({'server': 'server1'})
        elif (('component' in object) and (not object.get('serviceName'))):
            object.update({'serviceName': 'server1'})
        return object
    object_authorizables = [(obj, key(obj)) for obj in objects if key(obj)]
    object_authorizables = [(obj, add_default_server(auth)) for (obj, auth) in object_authorizables]
    return object_authorizables
