code: public static void writeStreamToFile(InputStream isr, String fileName, String outputFolder) throws IOException {
          logger.entering(new Object[] { isr, fileName, outputFolder });
          FileUtils.copyInputStreamToFile(isr, new File(outputFolder + "/" + fileName));
          logger.exiting();
      }
docs: Write an {@link InputStream} to a file
  @param isr the {@link InputStream}
  @param fileName The target file name to use. Do not include the path.
  @param outputFolder The target folder to use.
  @throws IOException