The idea here, is to copy the user input, in order to change the db from something to template1. I would never change the initial value of the object, just making a local copy of it, in order to pass this specific case.