The key is to use ConfigFactory to create a new Config record. This new Config contains an entry for the password with the value received from your HTTP call to the password service.
A new configuration is created using the new Config, which in turn reverts to the original configuration from the original configuration.
Basically, a new password entry replaces the original.
It sounds long when you say this, but the code is pretty readable.
public class Global extends GlobalSettings {
source share