Serialization Template Generation