def METHOD_NAME(self, content):
    try:
        device = tuple(filter(lambda i: i.getName() == content['device'], self.__devices))[0]
        for rpc_config in device.config['serverSideRpc']:
            for (key, value) in content['data'].items():
                if value == rpc_config['methodRPC']:
                    rpc_method = rpc_config['methodProcessing']
                    return_result = rpc_config['withResponse']
                    result = None
                    if rpc_method.upper() == 'READ':
                        result = device.read_char(rpc_config['characteristicUUID'])
                    elif rpc_method.upper() == 'WRITE':
                        result = device.write_char(rpc_config['characteristicUUID'],
                                                   bytes(str(content['data']['params']), 'utf-8'))
                    elif rpc_method.upper() == 'SCAN':
                        result = device.scan_self(return_result)
                    if return_result:
                        self.__gateway.send_rpc_reply(content['device'], content['data']['id'], str(result))
                    return
    except IndexError:
        log.error('Device not found')