class ConfDumper {

    public static final String EOL = System.getProperty("line.separator");

    private static final Logger LOG = Log.logger(ConfDumper.class);

    public static void main(String[] args)
            throws ConfigurationException, IOException {
        E.checkArgument(args.length == 1,
                        "ConfDumper need a config file.");

        String input = args[0];
        File output = new File(input + ".default");

        LOG.info("Input config: {}", input);
        LOG.info("Output config: {}", output.getPath());

        RegisterUtil.registerBackends();
        RegisterUtil.registerServer();

        HugeConfig config = new HugeConfig(input);

        for (String name : new TreeSet<>(OptionSpace.keys())) {
            TypedOption<?, ?> option = OptionSpace.get(name);
            writeOption(output, option, config.get(option));
        }
    }

    private static void writeOption(File output, TypedOption<?, ?> option,
                                    Object value) throws IOException {<FILL_FUNCTION_BODY>}
}

        StringBuilder sb = new StringBuilder();
        sb.append("# ").append(option.desc()).append(EOL);
        sb.append(option.name()).append("=").append(value).append(EOL);
        sb.append(EOL);
        // Write to output file
        FileUtils.write(output, sb.toString(), true);
    
<no_super_class>