int length = length();
if (startIndex < 0 || startIndex >= length || endIndex <= startIndex || endIndex > length) {
throw new StringIndexOutOfBoundsException("StartIndex: " + startIndex + ", EndIndex: "
+ endIndex + ", Size: " + length);
}
StringDeleteComponent op =
new StringDeleteComponent(id, startIndex, snapshot.substring(startIndex, endIndex));
consumeAndSubmit(op);
}