for (DocumentEvent<N, E, T> eventComponent : eventComponents) {
if (eventComponent.getType() == DocumentEvent.Type.ANNOTATION_CHANGED) {
if (capabilities.containsKey(EventType.ANNOTATED_TEXT_CHANGED)) {
AnnotationChanged<N, E, T> anotationChangedEvent =
(AnnotationChanged<N, E, T>) eventComponent;
AnnotatedTextChangedEvent apiEvent =
new AnnotatedTextChangedEvent(null, null, deltaAuthor.getAddress(), deltaTimestamp,
blip.getId(), anotationChangedEvent.key, anotationChangedEvent.newValue);
addEvent(apiEvent, capabilities, blip.getId(), messages);
}
} else {
if (capabilities.containsKey(EventType.DOCUMENT_CHANGED)