if (exportConfig != null && !exportConfig.isEmpty() && curatorFramework != null) {
JolokiaAgentHelper.substituteEnvironmentVariableExpressions(exportConfig, environmentVariables, getFabricService(), curatorFramework, true);
ZooKeeperPublishConfig config = new ZooKeeperPublishConfig();
try {
getConfigurer().configure(exportConfig, config);
config.publish(curatorFramework, null, null, null, environmentVariables);
} catch (Exception e) {
LOG.warn("Failed to publish configuration " + configName + " of " + config + " due to: " + e, e);
}
}
}