print out the result of `nlapiGetContext().getExec...
# suitescript
e
print out the result of
nlapiGetContext().getExecutionContext()
to the logs, then trigger your UE from the Restlet. Then you will know what context it carries