Implemented WriteConfig for KeyValueConfig