code: boolean tryLock(Path lockFile) throws JobLockException {
      log.debug("Attempting lock: {}", lockFile);
      try {
        return this.fs.createNewFile(lockFile);
      } catch (IOException e) {
        throw new JobLockException(e);
      }
    }
docs: Try locking the lock.
  
  @return <em>true</em> if the lock is successfully locked,
  <em>false</em> if otherwise.
  @throws JobLockException thrown if the {@link JobLock} fails to be acquired