}
void consumeAndSubmit(OperationComponent<?> component) {
Collaborator me = document.collaborators.get(store.getBus().getSessionId());
CollaborativeOperation operation =
new CollaborativeOperation(me == null ? null : me.userId(), store.getBus().getSessionId(),
Json.createArray().push(component));
applyLocally(operation);
undoManager.checkpoint();
undoManager.undoableOp(operation);
mayUndoRedoStateChanged();