}
xmlString = document.asXML();
try {
//ContentServiceProxy proxy=new ContentServiceProxy(user,session);
ContentServiceProxy proxy=new ContentServiceProxy(userUniqueIdentifier,session);
String result=proxy.saveObjectTemplate( documentId, templateName, xmlString);
//byte[] response = sbiutils.saveObjectTemplate(spagoBIBaseUrl, path, templateName, xmlString);
} catch (Exception gse) {
logger.error("Error while saving template", gse);
//session.setAttribute("saveTemplateMessage", "KO - " + gse.getMessage());
}