code: boolean isLocked(Path lockFile) throws JobLockException {
      try {
        return this.fs.exists(lockFile);
      } catch (IOException e) {
        throw new JobLockException(e);
      }
    }
docs: Check if the lock is locked.
  
  @return if the lock is locked
  @throws JobLockException thrown if checking the status of the {@link JobLock} fails