code: @Override
    public void lock() throws JobLockException {
      try {
        this.lock.acquire();
      } catch (Exception e) {
        throw new JobLockException("Failed to acquire lock " + this.lockPath, e);
      }
    }
docs: Acquire the lock.
  
  @throws IOException