/**
  * handle the command
  *
  * @param $command
  * @return mixed
  */
 public function handle($command)
 {
     $role = Role::updateRights($command->roleId, $command->name, $command->capabilities);
     $this->dispatchEventsFor($role);
     return $role;
 }