Add template security class