If you want to change the loaded config (i.e. create a new config based on the old one), you can use withValue:
val newConfig = oldConfig.withValue("something.another.anotherconfig",
ConfigValueFactory.fromAnyRef(456))
If you want to change the loaded config (i.e. create a new config based on the old one), you can use withValue:
val newConfig = oldConfig.withValue("something.another.anotherconfig",
ConfigValueFactory.fromAnyRef(456))