Mathias Ricken - 2010-04-10

The assert that fails is

assert _documents.contains(odd);

For some reason, after the document was added, the field

private volatile Set<OpenDefinitionsDocument> _documents

does not contain the document.

We should check that the method is only run in the event thread. That could prevent some concurrency problems.