if (log.isDebug()) log.info("Migrate " + allIdentityNotes.size() + " Notes for Identity: " + identity.getName());
if (!allIdentityNotes.isEmpty()){
usercounter++;
for (Iterator<Note> iterator2 = allIdentityNotes.iterator(); iterator2.hasNext();) {
try{
Note note = iterator2.next();
String parsedText = note.getNoteText();
parsedText = migrateStringSavely(parsedText);
note.setNoteText(parsedText);
noteMgr.saveNote(note);
counter ++;
DBFactory.getInstance().intermediateCommit();
} catch (Exception e) {
log.error("Error during Migration: "+e, e);