@SuppressWarnings({"rawtypes","unchecked"}) private static List toSimpleModel(List listToClean){
  ListIterator<Object> listIter=listToClean.listIterator();
  while (listIter.hasNext()) {
    Object listEntry=listIter.next();
    if (listEntry instanceof ODocument || listEntry instanceof Set) {
      listIter.set(asSimpleBinding(listEntry));
    }
 else {
      asSimpleBinding(listEntry);
    }
  }
  return listToClean;
}

@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) private static List toSimpleModel ( List listToClean ) { ListIterator < Object > listIter = listToClean . listIterator ( ) ; while ( listIter . hasNext ( ) ) { Object listEntry = listIter . next ( ) ; if ( listEntry instanceof ODocument || listEntry instanceof Set ) { listIter . set ( asSimpleBinding ( listEntry ) ) ; } else { asSimpleBinding ( listEntry ) ; } } return listToClean ; }
iteratively convert contents as necessary to simple model
