Update PageTemplate Content from Confluence Plugin

Hi!

I am currently writing a Confluence (6.0.3) Plugin which should replace MacroDefinitions within the Content of a PageTemplate and save the updated content.

I only found the “setContent()” method with the PageTemplate class but none to save the new content.

How can I save the new PageTemplate content ?

Another question is, if/how I can uset the MacroDefinitionReplacer class on a PageTemplate.

Thanx in advance for any hints!

Regards,
Hans