int usercounter = 0;
if (log.isDebug()) log.info("Migrating notes for " + identitiesList.size() + " Identities.");
for (Iterator<Identity> iterator = identitiesList.iterator(); iterator.hasNext();) {
Identity identity = iterator.next();
try{
List<Note> allIdentityNotes = noteMgr.listUserNotes(identity);
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{