boolean clone ) {
if (clone) {
document = document.clone();
}
final List<Operation> operations = new LinkedList<Operation>();
final DocumentObserver observer = new DocumentObserver() {
@Override
public void addOperation( Operation o ) {
if (o != null) {
operations.add(o);
}