Getting some template code ready for the Persistence Manager.