return;
}
Iterator it = applicationSessions.values().iterator();
while (it.hasNext()) {
SipApplicationSessionImpl session = (SipApplicationSessionImpl) it.next();
//by virtue of being in the cache it is considered to
//be not expired
//but since invalidate is called before removal we must check
if(session.isValid()
&& (session.getId() != null)
&& isSipApplicationSessionOlderThan(session, repairStartTime)
&& session.lockBackground()) {
try {
((HASipApplicationSession)session).setReplicated(false);
((HASipApplicationSession)session).setDirty(true, false);
saveSipApplicationSession(session);
} catch (IOException ex) {
_logger.log(Level.WARNING,
"during repair unable to save SipApplicationSession:id = " + session.getId(),
ex);
} finally {
session.unlockBackground();
}
}
}
}