// Set up the Environment instance with exception information.
// The exception can be a SystemException or an UnknownUserException.
Environment env = new EnvironmentImpl();
env.exception(null);
// call the OTS proprietary hook.
try {
sender.received_reply(ri.request_id(), ctx, env);