public KpiError toKpiError(SbiKpiError sbiKpiError){
logger.debug("IN");
KpiError toReturn=new KpiError();
toReturn.setKpiErrorId(sbiKpiError.getKpiErrorId());
toReturn.setUserMessage(sbiKpiError.getUserMessage());
toReturn.setLabelModInst(sbiKpiError.getLabelModInst());
toReturn.setParameters(sbiKpiError.getParameters());
toReturn.setTsDate(sbiKpiError.getTsDate());
toReturn.setFullMessage(sbiKpiError.getFullMessage());
if(sbiKpiError.getSbiKpiModelInst() != null)
toReturn.setKpiModelInstId(sbiKpiError.getSbiKpiModelInst().getKpiModelInst());
logger.debug("OUT");
return toReturn;
}