Making getSetting synchronized to avoid conflicts when multiple threading are calling it.