add the funzion to write the default value of the variable of any domain

Change-Id: Id7877b8e62d9e9d0b8ac3ff73a891dceff09b1b3