public HierarchicalStreamReader createReader(final InputStream in) {
try {
final Document document = builder.build(in);
return new XomReader(document, getNameCoder());
} catch (final ValidityException e) {
throw new StreamException(e);
} catch (final ParsingException e) {
throw new StreamException(e);
} catch (final IOException e) {
throw new StreamException(e);
}
}