// And now remove all watcher entries associated with markup
// resources no longer in the cache. Note that you can not use
// Application.get() since removeMarkup() will be call from a
// ModificationWatcher thread which has no associated Application.
final ModificationWatcher watcher = application.getResourceSettings()
.getResourceWatcher(true);
if (watcher != null)
{
Iterator iter = watcher.getEntries().iterator();
while (iter.hasNext())
{
IModifiable modifiable = (IModifiable)iter.next();
if (modifiable instanceof MarkupResourceStream)
{