No functional refactoring changes while reviewing r1819730 Removes useless exceptions handling. Uses try-w/-ress for ByteArrayInputStream