final XMLMapper mapper = XMLMapper.Factory.create();
registerStandardDomainReaders(mapper);
try {
final List<AbstractDomainModelUpdate<?>> domainUpdates = new ArrayList<AbstractDomainModelUpdate<?>>();
<BUG>mapper.parseDocument(domainUpdates, XMLInputFactory.newInstance().createXMLStreamReader(new BufferedReader(reader)));
</BUG>
final DomainModel domainModel = new DomainModel();
for(final AbstractDomainModelUpdate<?> update : domainUpdates) {
domainModel.update(update);
}

final XMLMapper mapper = XMLMapper.Factory.create();
registerStandardDomainReaders(mapper);
try {
final List<AbstractDomainModelUpdate<?>> domainUpdates = new ArrayList<AbstractDomainModelUpdate<?>>();
mapper.parseDocument(domainUpdates, XMLInputFactory.newInstance().createXMLStreamReader(new BufferedInputStream(reader)));
final DomainModel domainModel = new DomainModel();
for(final AbstractDomainModelUpdate<?> update : domainUpdates) {
domainModel.update(update);
}
