/**
  * @param string $channel
  * @param bool   $locked
  */
 private function setLockStatusForChannel($channel, $locked)
 {
     $lock = $this->lockManager->getLock($channel);
     $lock->setCommandLocked($locked);
     $this->lockManager->save($lock);
 }
 /**
  * Release a lock
  */
 public function release()
 {
     $lock = $this->lockManager->getLock();
     $lock->setCommandLocked(false);
     $this->lockManager->save($lock);
 }