public void close() throws IOException {
   if (outputStream != null) {
     outputStream.close();
   }
 }