@Override
    protected void store(Map<String, String> stringOptionMap) throws IOException {
        properties.putAll(stringOptionMap);
        try (OutputStream out = Files.newOutputStream(file)) {
            if (xml) {
                properties.storeToXML(out, null);
            } else {
                properties.store(out, null);
            }
        }
    }