Using the IOUtils to write an InputStream to an OutputStream