/**
  * Execute the DisplayCommand.
  *
  * @param   DisplayCommand $command The command to execute.
  *
  * @return  void
  */
 public function handle(BasicDisplayCommand $command)
 {
     $repository = $this->getCommandBus()->handle(new RepositoryQuery($command->entityName));
     $entity = $repository->findById($command->id);
     if (!$entity instanceof EntityInterface) {
         return;
     }
     $compound = new Compound($command->entityName, $this->getElements($entity));
     $compound->accept($command->renderer);
 }