code: public static ZooKeeperLeaderElectionService createLeaderElectionService(
  			final CuratorFramework client,
  			final Configuration configuration,
  			final String pathSuffix) {
  		final String latchPath = configuration.getString(
  			HighAvailabilityOptions.HA_ZOOKEEPER_LATCH_PATH) + pathSuffix;
  		final String leaderPath = configuration.getString(
  			HighAvailabilityOptions.HA_ZOOKEEPER_LEADER_PATH) + pathSuffix;
  
  		return new ZooKeeperLeaderElectionService(client, latchPath, leaderPath);
  	}
docs: Creates a {@link ZooKeeperLeaderElectionService} instance.
  
  @param client        The {@link CuratorFramework} ZooKeeper client to use
  @param configuration {@link Configuration} object containing the configuration values
  @param pathSuffix    The path suffix which we want to append
  @return {@link ZooKeeperLeaderElectionService} instance.