config.setComment(e.getKey(), e.getValue().toString());
}
}
// Migrate the old configuration, if we need to
final String result = new LegacyCommandBookConfigurationMigrator(configFile, config).migrate();
if (result != null) {
logger().severe("Error migrating CommandBook configuration: " + result);
}
return config;