docs: public static long copyAndClose(InputStream is, OutputStream os) throws IOException
    {
      try {
        final long retval = ByteStreams.copy(is, os);
        // Workarround for http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/759aa847dcaf
        os.flush();
        return retval;
      }
      finally {
        is.close();
        os.close();
      }
    }