dao.insertModalitiesValue(modVal);
} else {
// looks for dependencies associated to the previous lov
Integer lovId = modVal.getId();
ModalitiesValue initialLov = DAOFactory.getModalitiesValueDAO().loadModalitiesValueByID(lovId);
IObjParuseDAO objParuseDAO = DAOFactory.getObjParuseDAO();
IParameterUseDAO paruseDAO = DAOFactory.getParameterUseDAO();
List paruses = paruseDAO.getParameterUsesAssociatedToLov(lovId);
Iterator parusesIt = paruses.iterator();
List documents = new ArrayList();
List correlations = new ArrayList();
while (parusesIt.hasNext()) {
ParameterUse aParuse = (ParameterUse) parusesIt.next();
documents.addAll(objParuseDAO.getDocumentLabelsListWithAssociatedDependencies(aParuse.getUseID()));
correlations.addAll(objParuseDAO.getAllDependenciesForParameterUse(aParuse.getUseID()));
}
// if the document list is not empty means that the lov is in correlation in some documents
if (documents.size() > 0) {
if (!initialLov.getITypeCd().equals(modVal.getITypeCd())) {
// the lov type was changed