code: public void setResult(Object result) {
          if (resultSent) {
              throw new RuntimeException("You can only set the result once.");
          }
          this.resultSent = true;
          Channel channel = this.channel.get();
          if (channel == null) {
              log.warn("The client is no longer connected.");
              return;
          }
          call.setResult(result);
          Invoke reply = new Invoke();
          reply.setCall(call);
          reply.setTransactionId(transactionId);
          channel.write(reply);
          channel.getConnection().unregisterDeferredResult(this);
      }
docs: Set the result of a method call and send to the caller.
  
  @param result
  deferred result of the method call