I am currently working with a Java Properties object to hold and modify some config values for my app. What I am currently doing is reading in a properties file that I have and using that to create a Java Properties object. I then need to set one of the values based on the parameter that I pass to my app. This works perfectly as long as that key/value pair exists in the properties file that I read in; however, if the key doesn't exist, I am not able to add that key value pair. From the docs that I've read, Properties.setProperty() should add that key value pair if it doesn't exist, but it is not working that way. Am I missing something? Any help would be greatly appreciated. I've also posted some of my code below: