/**
  * @param CreateWalletCommand $command
  * @throws \Exception
  */
 public function handle(CreateWalletCommand $command)
 {
     // DEBUG
     //var_dump($command);
     $walletOwnerId = $command->getWalletOwnerId();
     $walletName = $command->getName();
     $walletCoinSymbol = $command->getCoinSymbol();
     $walletToken = $command->getToken();
     // Create app wallet
     $wallet = new Wallet($this->walletRepository->nextIdentity(), new UserId($walletOwnerId), $walletName, $walletCoinSymbol, $walletToken, $this->clock->now(), array());
     $this->walletRepository->insert($wallet);
     // Create BlockCypher wallet
     $this->blockCypherWalletService->createWallet($wallet->getId()->getValue(), $wallet->getCoinSymbol(), $wallet->getToken());
 }