public PropertiesOptionManager(String path, boolean xml) {
        properties = new Properties();
        file = Paths.get(path);
        this.xml = xml;
        try (InputStream in = Files.newInputStream(file)) {
            if (xml) {
                properties.loadFromXML(in);
            } else {
                properties.load(in);
            }
        } catch (IOException ex) {
            // Ignore.
        }
    }