if(doSave){
// Insert new Value into the DB
IKpiDAO dao= DAOFactory.getKpiDAO();
dao.setUserProfile(profile);
Integer kpiValueId = dao.insertKpiValue(kpiValTemp);
kVal.setKpiValueId(kpiValueId);
logger.info("New value inserted in the DB. Resource="+kpiValTemp.getR().getName()+" KpiInstanceId="+kpiValTemp.getKpiInstanceId());
}
// Checks if the value is alarming (out of a certain range)
// If the value is alarming a new line will be inserted in the