IObjParuseDAO corrDao = DAOFactory.getObjParuseDAO();
corrDao.setUserProfile(profile);
Iterator iterOldCorr = oldCorrelations.iterator();
while(iterOldCorr.hasNext()) {
ObjParuse oldCorr = (ObjParuse)iterOldCorr.next();
corrDao.eraseObjParuse(oldCorr);
}
Iterator iterNewCorr = newCorrelations.iterator();
while(iterNewCorr.hasNext()) {
ObjParuse newCorr = (ObjParuse)iterNewCorr.next();
corrDao.insertObjParuse(newCorr);