changes.get( result.getK1() ).add( result.getK2() );
}
}
}
if ( changes.size() == 1 && changes.values().size() == 1 ) {
final ResourceChange _event = changes.values().iterator().next().iterator().next();
if ( _event instanceof ResourceUpdated ) {
resourceUpdatedEvent.fire( (ResourceUpdatedEvent) toEvent( changes.keySet().iterator().next(), _event, firstContext ) );
} else if ( _event instanceof ResourceAdded ) {
resourceAddedEvent.fire( (ResourceAddedEvent) toEvent( changes.keySet().iterator().next(), _event, firstContext ) );
} else if ( _event instanceof ResourceRenamed ) {