code: public static IOException initIOException(final Exception ex) {
          String message = null;
          if (ex != null && ex.getMessage() != null) {
              message = ex.getMessage() + " Please see the cause for further information.";
          }
          else {
              message = "Please see the cause for further information.";
          }
  
          final IOException retEx = new IOException(message, ex);
          return retEx;
      }
docs: Creates an instance of the <code>IOException</code> class using the specified exception.
  
  @param ex
  An <code>Exception</code> object that represents the exception used to create the IO exception.
  
  @return A <code>java.io.IOException</code> object that represents the created IO exception.