session.save(hibMi);
tx.commit();
// Load all the model resources of the current instance model
// after having inserted model instance
IModelResourceDAO modelResourceDao=DAOFactory.getModelResourcesDAO();
List modelResources=modelResourceDao.loadModelResourceByModelId(mi.getId());
for (Iterator iterator = modelResources.iterator(); iterator.hasNext();) {
ModelResources modRes = (ModelResources) iterator.next();
insertModelResources(modRes, session);
// TODO: maybe insert also the set
}