String[] oldGuestUserNames = new String[] { "gast", "guest", "ospite", "invité", "invitado", "episkeptis", "gost", "gosc", "kerencn",
"kerentw", "gaest", "host", "svecas", "mehman", "convidadopt", "convidadobr", "misafir", "vendég", "mysafir", "tamu",
"dhaif", "giast", "gas", "oreah", "khachmoi", "zochin" };
Manager secMgr = ManagerFactory.getManager();
for (String guestUserName : oldGuestUserNames) {
Identity oldGuest = secMgr.findIdentityByName(guestUserName);
if (oldGuest == null) {
// skip this one, seems already to be deleted
continue;
}
UserDeletionManager.getInstance().deleteIdentity(oldGuest);