resourceRenamedEvent.fire( (ResourceRenamedEvent) toEvent( changes.keySet().iterator().next(), _event, firstContext ) );
} else if ( _event instanceof ResourceDeleted ) {
resourceDeletedEvent.fire( (ResourceDeletedEvent) toEvent( changes.keySet().iterator().next(), _event, firstContext ) );
}
} else if ( changes.size() > 1 ) {
resourceBatchChanges.fire( new ResourceBatchChangesEvent( changes, message( firstContext ), sessionInfo( firstContext ) ) );
}
} else if ( events.size() == 1 ) {
try {
final WatchEvent<?> event = events.get( 0 );
if ( !filter.doFilter( event ) ) {