code: public static RuntimeException wrap(Throwable throwable) {
          RuntimeException result;
          if (throwable instanceof RuntimeException) {
              result = (RuntimeException) throwable;
          } else {
              result = new RuntimeException(throwable.getClass().getSimpleName(), throwable);
          }
          return result;
      }
docs: Returns the given throwable as a <code>RuntimeException</code> wrapping it in a new
  <code>RuntimeException</code> if necessary.
  @param throwable The throwable to wrap
  @return The wrapped throwable