public void initDLockService() {
    InternalDistributedSystem ds = sender.getCache().getInternalDistributedSystem();
    String dlsName = getDLockServiceName();
    lockService = DistributedLockService.getServiceNamed(dlsName);
    if (lockService == null) {
      lockService = DLockService.create(dlsName, ds, true, true);
    }
    if (logger.isDebugEnabled()) {
      logger.debug("{}: Obtained DistributedLockService: {}", this, lockService);
    }
  }
When the sender profile is removed, then check for the primary members if they are not
available then this secondary sender should volunteer for primary
geode-core/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderAdvisor.java