Bug 54262: Serialize new entity to its contents

Change-Id: Icfed0a5b7ed60570932373c868d0e1c0c0313ffa
Merge "Bug 54262: Serialize new entity to its contents"