private void writeRemove(Object key, V value) {
Excerpt excerpt = getExcerpt(maxMessageSize, remove);
long eventId = excerpt.index();
writeKey(excerpt, (K) key);
writeValue(excerpt, value);
excerpt.finish();
if (!notifyOff && !listeners.isEmpty()) {
for (int i = 0; i < listeners.size(); i++) {
MapListener<K, V> listener = listeners.get(i);
listener.eventStart(eventId, name);
listener.remove((K) key, value);