Smart way to replace and transform your source code to a different source code using custom transform template