public void eventFired(RepositoryEvent event) {
Assert.notNull("event", event);
Set listeners;
if (event instanceof DocumentEvent) {
DocumentIdentifier id = getIdentifier((DocumentEvent) event);
listeners = getAllListeners(id);
} else {
listeners = this.listeners;
}
notify(listeners, event);