while (it.hasNext()) {
String attributeName = (String) it.next();
if (!attributeName.startsWith(SPAGOBI_SESSION_ATTRIBUTE)) {
Object attributeObject = session.get(attributeName);
if (attributeObject instanceof Context) {
Context context = (Context) attributeObject;
if (context.isOlderThan(minutes)) {
logger.debug("Deleting context instance with last usage date = [" + context.getLastUsageDate() + "]");
session.remove(attributeName);
}
} else {
logger.debug("Session attribute with key [" + attributeName + "] is not a Context object; cannot delete it.");
}