private void tryReloadConfig(BooleanCommand resp) throws UnsupportedEncodingException, IOException,
FileNotFoundException {
String str = resp.getErrorMsg();
str = new String(str.getBytes("utf-8"));
MetaConfig newConfig = new MetaConfig();
newConfig.loadFromString(str);
// If topics config changed
if (!newConfig.getTopicConfigMap().equals(this.broker.getMetaConfig().getTopicConfigMap())) {
File tmpFile = File.createTempFile("meta_config", "slave_sync");
BufferedWriter writer =
new BufferedWriter(new OutputStreamWriter(new FileOutputStream(tmpFile), SLAVE_CONFIG_ENCODING));