@@ -0,0 +1,1472 @@
+package seedu.todo.commons.core;%0A%0Aimport java.io.IOException;%0Aimport java.util.Optional;%0Aimport java.util.logging.Logger;%0A%0Aimport seedu.todo.MainApp;%0Aimport seedu.todo.commons.exceptions.DataConversionException;%0Aimport seedu.todo.commons.util.ConfigUtil;%0A%0A// @@author A0139812A%0Apublic class ConfigCenter %7B%0A    private static final Logger logger = LogsCenter.getLogger(MainApp.class);%0A%0A    private static ConfigCenter instance;%0A    %0A    private Config config;%0A    private String configFilePath;%0A%0A    public static ConfigCenter getInstance() %7B%0A        if (instance == null) %7B%0A            instance = new ConfigCenter();%0A        %7D%0A        %0A        return instance;%0A    %7D%0A    %0A    public void setConfigFilePath(String path) %7B%0A        configFilePath = path;%0A    %7D%0A    %0A    public Config getConfig() %7B%0A        if (config == null) %7B%0A            Optional%3CConfig%3E configOptional;%0A            %0A            try %7B%0A                configOptional = ConfigUtil.readConfig(configFilePath);%0A                config = configOptional.orElse(new Config());%0A            %7D catch (DataConversionException e) %7B%0A                logger.warning(%22Config file at %22 + configFilePath + %22 is not in the correct format. %22 +%0A                        %22Using default config properties%22);%0A            %7D%0A        %7D%0A        %0A        return config;%0A    %7D%0A    %0A    public void saveConfig(Config config) throws IOException %7B%0A        ConfigUtil.saveConfig(config, configFilePath);%0A        this.config = config;%0A    %7D%0A%7D%0A

Add ConfigCenter