String userId = ((UserProfile) profile).getUserId().toString();
logger.debug("Current user id is [" + userId + "]");
objTemplate.setCreationUser(userId);
objTemplate.setCreationDate(new Date());
logger.debug("Saving template....");
IObjTemplateDAO tempDAO = DAOFactory.getObjTemplateDAO();
tempDAO.setUserProfile(profile);
tempDAO.insertBIObjectTemplate(objTemplate);
logger.debug("Template stored without errors.");
} catch(Exception e) {
logger.error("Error while uploading template", e);
}
logger.debug("OUT");