I think the try/finally to close the InputStream, in case an exception occurs during parsing, is still needed.