Conversation conversation = (Conversation) iterConversations.next();
// This conversation has "flash" scope if it has an attached Aspect
// of type ConversationFlashLifetimeAspect. All other conversations
// are not flash-scoped and should be ignored here.
ConversationFlashLifetimeAspect aspect =
(ConversationFlashLifetimeAspect)
conversation.getAspect(ConversationFlashLifetimeAspect.class);
if (aspect != null && !aspect.isAccessed())
{
conversation.invalidate();
}
}
}