* @throws Exception if an error occurs.
*/
protected void saveDocument(String encoding, String content) throws Exception {
org.apache.lenya.cms.publication.Document doc = getSourceDocument();
saveXMLFile(encoding, content, doc);
LinkConverter converter = new LinkConverter(this.manager, getLogger());
converter.convertUrlsToUuids(doc, false);
WorkflowUtil.invoke(this.manager, getSession(), getLogger(), doc, getEvent());
}