document = reader.read(is);
} catch (Exception e) {
logger.error("Error while parsing xml template " + xmlString, e);
return;
}
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);