Create and import a residue template