adding the utility function to generate merged message.
added new funtion which allow us to do the second level merge,
the production merge.