return;
}
Iterator it = sipSessions.values().iterator();
while (it.hasNext()) {
SipSessionDialogImpl session = (SipSessionDialogImpl) 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)
&& isSipSessionOlderThan(session, repairStartTime)
&& session.lockBackground()) {
try {
((HASipSession)session).setReplicated(false);
((HASipSession)session).setDirty(true, false);
saveSipSession(session);
} catch (IOException ex) {
_logger.log(Level.WARNING,
"during repair unable to save SipSession:id = " + session.getId(),
ex);
} finally {
session.unlockBackground();
}
}
}
}