Change from Properties to Preferences api for managing configuration.