@Override
public ResultToSolrMapper createMapper(String indexName) throws IndexerConfException {
String zookeeperConnectString = params.get(LResultToSolrMapper.ZOOKEEPER_KEY);
String repositoryName = params.get(LResultToSolrMapper.REPO_KEY);
ZooKeeperImpl zk = null;
LilyClient lilyClient = null;
LRepository lRepository;
try {
zk = new ZooKeeperImpl(zookeeperConnectString, 30000);
lilyClient = new LilyClient(zk);
if (repositoryName == null) {
lRepository = lilyClient.getDefaultRepository();
} else {
lRepository = lilyClient.getRepository(repositoryName);