class Environment {

    protected void save() {
        if (configFile != null) {
            try (FileWriter writer = new FileWriter(configFile)) {
                this.getConfiguration().write(writer);
            } catch (Exception e) {
                LOGGER.warn("Error saving the config file: {}", e.getMessage(), e);
            }
        }
    }

    private  Environment();

}