public static void commit(){
		File settingsFile = null;
		FileWriter fw = null;
		BufferedWriter bw = null;
		try {
			settingsFile = new File(SETTINGS_FILE_NAME);
			fw = new FileWriter(settingsFile);
			bw = new BufferedWriter(fw);
			Gson gson = new Gson();
			bw.write(gson.toJson(config, Config.Settings.class));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			if(bw != null){
				try {
					bw.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			if(fw != null){
				try {
					fw.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}
		
	}