public void wipe() {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("checking for expired sessions");
}
XFormsSession session;
Iterator allSessions = this.xformsSessions.values().iterator();
while (allSessions.hasNext()) {
session = (XFormsSession) allSessions.next();
if (isExpired(session)) {
allSessions.remove();
System.gc();
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Removed expired XFormsSession: " + session.getKey() + " - lastUsed: " + new Date(session.getLastUseTime()));
LOGGER.debug("Session count now: " + xformsSessions.size());
}
}
}
}