BO Template Generation Logic as per new DE