#NEWLINE# def get_required_service( self , protocol , query = '' , minimize = '' , maximize = '' ) : #NEWLINE# #INDENT# " Return the service that matches the specified query.\n\n        Raise a 'NoSuchServiceError' exception if no such service exists.\n\n        " #NEWLINE# service = self . service_registry . get_required_service ( maximize , query , minimize , maximize ) #NEWLINE# return service