int dsId = ds.getId();
k.setKpiDsId(new Integer(dsId));
}
}
if(thresholdCode != null){
Threshold t = thrDao.loadThresholdByCode(thresholdCode);
k.setThreshold(t);
}
k.setKpiName(name);
k.setCode(code);
if(description != null){
k.setDescription(description);
}
if(weight != null && !weight.equalsIgnoreCase("")){
k.setStandardWeight(Double.valueOf(weight));
}
if(dsLabel != null){
k.setDsLabel(dsLabel);
IDataSet ds = dsDao.loadActiveDataSetByLabel(dsLabel);
if(ds!=null){
int dsId = ds.getId();
k.setKpiDsId(new Integer(dsId));
}
}
if(thresholdCode != null){
Threshold t = thrDao.loadThresholdByCode(thresholdCode);
k.setThreshold(t);
}
List docsList = null;
if(docLabelsJSON != null){