String modelInstanceLabel = (String) tempFileSB.getAttribute("model_node_instance");
// biObjectToInsert keeps track of objects that have to be inserted beacuse related to Kpi
if (modelInstanceLabel != null) {
IModelInstanceDAO modelInstanceDao = DAOFactory.getModelInstanceDAO();
ModelInstance modelInstance = modelInstanceDao.loadModelInstanceWithoutChildrenByLabel(modelInstanceLabel);
if (modelInstance == null) {
logger.warn("Error while exporting kpi with id " + biobj.getId() + " and label " + biobj.getLabel() + " : " +
"the template refers to a Model Instance with label " + modelInstanceLabel + " that does not exist!");
} else {
objsToInsert=exporter.insertAllFromModelInstance(modelInstance, session);