def get_remote_info(execution_object, method_name):
    #This is a remote method.
    rmi_call = method_name.split('.')
    #Retrieve service definition
    service_name = rmi_call[0]
    operation = rmi_call[1]
    if service_name == 'resource_registry':
        service_client = execution_object._rr
    else:
        target_service = get_service_registry().get_service_by_name(service_name)
        service_client = target_service.client(node=execution_object.service_provider.container.instance.node, process=execution_object.service_provider)

    return service_client, operation
Returns the service client and operation name
dataset/ETHPy150Open ooici/pyon/pyon/util/execute.py/get_remote_info