boolean localHasAlert = false;
for (int i = 0; i < watchModel.getRowCount(); i++)
{
boolean deleted = false;
final WatchInfo info = watchModel.getRow(i);
try
{
ClassLoaderManager classLoaderManager = (ClassLoaderManager) SingletonManager.get(ClassLoaderManager.class) ;
Thread.currentThread().setContextClassLoader(classLoaderManager.getClassLoaderByHermes(info.getHermesId())) ;
Hermes hermes = null;
if (!hermesToClose.keySet().contains(info.getHermesId()))
{
hermes = (Hermes) HermesBrowser.getBrowser().getContext().lookup(info.getHermesId());
hermesToClose.put(info.getHermesId(), hermes);
}
else
{
hermes = (Hermes) hermesToClose.get(info.getHermesId());
}
if (updateWatchInfo(hermes, info))
{
localHasAlert = true;
}
info.setE(null);
}
catch (Throwable e)
{
log.error(e.getMessage(), e);
info.setE(e);
}
}
for (Iterator iter = hermesToClose.entrySet().iterator(); iter.hasNext();)
{