</BUG>
final XMLMapper mapper = XMLMapper.Factory.create();
registerStandardHostReaders(mapper);
try {
final List<AbstractHostModelUpdate<?>> hostUpdates = new ArrayList<AbstractHostModelUpdate<?>>();
<BUG>mapper.parseDocument(hostUpdates, XMLInputFactory.newInstance().createXMLStreamReader(new BufferedReader(reader)));
</BUG>
final HostModel hostModel = new HostModel();
for(final AbstractHostModelUpdate<?> update : hostUpdates) {
hostModel.update(update);

throw e;
} catch (Exception e) {
throw new RuntimeException("Caught exception during processing of domain.xml", e);
}
}
private HostModel parseHost(final InputStream reader) throws ModuleLoadException {
final XMLMapper mapper = XMLMapper.Factory.create();
registerStandardHostReaders(mapper);
try {
final List<AbstractHostModelUpdate<?>> hostUpdates = new ArrayList<AbstractHostModelUpdate<?>>();
mapper.parseDocument(hostUpdates, XMLInputFactory.newInstance().createXMLStreamReader(new BufferedInputStream(reader)));
final HostModel hostModel = new HostModel();
for(final AbstractHostModelUpdate<?> update : hostUpdates) {
hostModel.update(update);
