final ZooKeeperConfiguration.Auth auth = configuration.getAuth();
if (auth != null) {
client.addAuthInfo(auth.getScheme(), auth.getId());
}
environment.addHealthCheck(new ZooKeeperHealthCheck(client, quorumSpec, namespace, name));
environment.manage(new ManagedZooKeeper(client));
return client;
}