NSMutableSet observers = (NSMutableSet)_observersByFilePath.objectForKey(cacheKeyForFile(file));
if (observers == null)
log.warn("Unable to find observers for file: " + file);
else {
NSNotification notification = new NSNotification(FileDidChange, file);
for (Enumeration e = observers.objectEnumerator(); e.hasMoreElements();) {
_ObserverSelectorHolder holder = (_ObserverSelectorHolder)e.nextElement();
try {
holder.selector.invoke(holder.observer, notification);
} catch (Exception ex) {
log.error("Catching exception when invoking method on observer: " + ex.toString()+" - "+ERXUtilities.stackTrace(ex));