props.put("zk.connect", workload.zkConnect);
config = new ConsumerConfig(props);
consumerConnector = Consumer.createJavaConsumerConnector(config);
try {
handler = (MessageHandler) new ICURLClassLoader().getClassLoader(workload)
.loadClass(this.workload.messageHandlerName).newInstance();
} catch (Exception ex) {
logger.error(ex);
this.terminate();
}