docs: @Override
      public void deleteServerLease(final String recoveryIdentity) throws Exception {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "deleteServerLease", new Object[] { recoveryIdentity, this });
  
          // Is a lease file (equivalent to a record in the DB table) available for deletion
          final File leaseFile = new File(_serverInstallLeaseLogDir + String.valueOf(File.separatorChar) + recoveryIdentity);
  
          // At this point we are ready to acquire a lock on the control file prior to attempting to delete the server's file.
          FileLock lock = null;
          FileChannel channel = AccessController.doPrivileged(new PrivilegedAction<FileChannel>() {
              @Override
              public FileChannel run() {
                  FileChannel theChannel = null;
                  try {
                      theChannel = new RandomAccessFile(_controlFile, "rw").getChannel();
                  } catch (FileNotFoundException e) {
                      if (tc.isDebugEnabled())
                          Tr.debug(tc, "Caught FileNotFound exception when trying to lock control file");
                      theChannel = null;
                  }
                  return theChannel;
              }
          });
  
          try {
              // Block until we can acquire the lock on the control file.
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "Block until we acquire the lock on the control file");
              lock = channel.lock();
  
              if (lock != null) {
                  // Delete the leaseFile
                  AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      @Override
                      public Void run() {
                          boolean success = false;
  
                          try {
                              // If we are about to delete a peer lease file, then do a check to be sure that a new instance
                              // of the peer has not "recently" started.
                              boolean attemptDelete = true;
                              if (!recoveryIdentity.equals(_localRecoveryIdentity)) {
                                  final long leaseTime = leaseFile.lastModified();
  
                                  if (tc.isDebugEnabled()) {
                                      Tr.debug(tc, "recoveryId: " + recoveryIdentity + ", leaseTime: " + leaseTime);
                                  }
  
                                  PeerLeaseData pld = new PeerLeaseData(recoveryIdentity, leaseTime, _leaseTimeout);
                                  if (!pld.isExpired()) {
                                      if (tc.isDebugEnabled())
                                          Tr.debug(tc, "The lease file has not expired, do not attempt deletion");
                                      attemptDelete = false;
                                  }
                              }
  
                              // Attempt to delete the lease file
                              if (attemptDelete) {
                                  if (tc.isDebugEnabled())
                                      Tr.debug(tc, "Attempt to delete file " + leaseFile.getName() + ", in dir " + _serverInstallLeaseLogDir);
                                  success = leaseFile.delete();
                                  if (success) {
                                      if (tc.isDebugEnabled())
                                          Tr.debug(tc, "Successfully deleted lease file");
                                  } else {
                                      if (tc.isDebugEnabled())
                                          Tr.debug(tc, "Failed to delete lease file");
                                  }
                              }
                          } catch (SecurityException se) {
                              if (tc.isDebugEnabled())
                                  Tr.debug(tc, "Caught SecurityException " + se);
                          }
                          return null;
                      }
                  });
  
              }
          } catch (OverlappingFileLockException e) {
              // File is already locked in this thread or virtual machine, We're not expecting this to happen. Log the event
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "The control file aleady appears to be locked in another thread");
          } catch (IOException e) {
              // We're not expecting this to happen. Log the event
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "Caught an IOException");
          } finally {
              // Release the lock - if it is not null!
              if (lock != null) {
                  lock.release();
              }
              // Close the channel
              channel.close();
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "deleteServerLease", this);
      }