@SuppressWarnings("unchecked")
private void writeRemove(int index, Object o) {
Excerpt excerpt = getExcerpt(maxMessageSize, removeIndex);
long eventId = excerpt.index();
excerpt.writeInt(index);
excerpt.finish();
if (!notifyOff && !listeners.isEmpty()) {
for (int i = 0; i < listeners.size(); i++) {
ListListener<E> listener = listeners.get(i);
listener.eventStart(eventId, name);
listener.remove(index, (E) o);