try {
instream = new FileInputStream(in);
return new StaxReader(new QNameMap(), mif.createXMLStreamReader(in.toURI().toASCIIString(), instream),
getNameCoder());
} catch (final XMLStreamException e) {
throw new StreamException(e);
} catch (final IOException e) {
throw new StreamException(e);
} finally {
if (instream != null) {
try {
instream.close();
} catch (final IOException e) {