Version with GatewayAgent for communicating UserResource and UserAgent