private DataNodeConfig getDataNodeConfigInHelix(HelixAdmin helixAdmin, String instanceName) {
    return dataNodeConfigSourceType == DataNodeConfigSourceType.INSTANCE_CONFIG ? instanceConfigConverter.convert(
        helixAdmin.getInstanceConfig(clusterName, instanceName)) : propertyStoreAdapter.get(instanceName);
  }
This is a hacky way to create distributed lock with different zookeeper connection.
@param resource The resource to lock
@param userId The user id for the lock
@param reason The reason to acquire the lock
@param zkConnectionStr The zookeeper server
@return A {@link DistributedLock}.
@throws Exception
ambry-clustermap/src/test/java/com/github/ambry/clustermap/HelixParticipantTest.java