/**
  * @return Rpc
  * @throws \Exception
  */
 public function newRpc()
 {
     $result = null;
     $rpc = new Rpc();
     $rpc->setGateway($this);
     // initialize ....
     $rpc->init();
     return $rpc;
 }
 /**
  * @return Rpc
  */
 public function newRpc()
 {
     $rpc = new Rpc();
     $rpc->init();
     return $rpc;
 }