code: protected JobLock getJobLock(Properties properties, JobLockEventListener jobLockEventListener)
        throws JobLockException {
      return LegacyJobLockFactoryManager.getJobLock(properties, jobLockEventListener);
    }
docs: Get a {@link JobLock} to be used for the job.
  
  @param properties the job properties
  @param jobLockEventListener the listener for lock events.
  @return {@link JobLock} to be used for the job
  @throws JobLockException throw when the {@link JobLock} fails to initialize