private void upload() throws Exception {
  final String zookeeperUrl=topologyProperties.getProperty(KafkaWithZKComponent.ZOOKEEPER_PROPERTY);
  try (CuratorFramework client=getClient(zookeeperUrl)){
    client.start();
    uploadGlobalConfig(client);
    uploadProfilerConfig(client);
  }
 }

private void upload ( ) throws Exception { final String zookeeperUrl = topologyProperties . getProperty ( KafkaWithZKComponent . ZOOKEEPER_PROPERTY ) ; try ( CuratorFramework client = getClient ( zookeeperUrl ) ) { client . start ( ) ; uploadGlobalConfig ( client ) ; uploadProfilerConfig ( client ) ; } }
uploads configuration to zookeeper .
