Currently I am working in FS 5 migration Task and one of the task was to change the HTML channel of the template
FormatTemplate tmp = formatTempItr.next();
for (TemplateSet templateSet : tmp.getProject().getTemplateSets())
String source = ((ChannelSourceProvider) tmp).getChannelSource(templateSet);
source.replace ("some text","replacement text");
My doubts is how to save the changes back to the template ??
I have tried the below lines of code but it didn't work.