try {
IBIObjectDAO objdao = DAOFactory.getBIObjectDAO();
objdao.setUserID(user);
Integer docId = new Integer(documentiId);
BIObject biobj = objdao.loadBIObjectById(docId);
ObjTemplate objTemp = new ObjTemplate();
objTemp.setBiobjId(biobj.getId());
objTemp.setActive(new Boolean(true));
objTemp.setContent(content.getBytes());
objTemp.setName(templateName);
objdao.modifyBIObject(biobj, objTemp);
} catch (NumberFormatException e) {
logger.error("NumberFormatException",e);
return "KO";
} catch (EMFUserError e) {