{
WindowContextManager windowContextManager = ConversationUtils.getWindowContextManager();
if(windowContextManager instanceof EditableWindowContextManager)
{
EditableWindowContextManager editableWindowContextManager =
(EditableWindowContextManager)windowContextManager;
Collection<EditableWindowContext> activeWindowContexts = editableWindowContextManager.getWindowContexts();
int activeWindowContextCountBeforeCleanup = activeWindowContexts.size();
removeEldestWindowContext(editableWindowContextManager, activeWindowContexts);
if(activeWindowContextCountBeforeCleanup > editableWindowContextManager.getWindowContexts().size())
{
return true;
}
}
return false;