protected RuntimeException runtimeException(final Exception exception) {
        if (exception instanceof RuntimeException) {
            throw (RuntimeException) exception;
        } else {
            throw new RuntimeException(exception);
        }
    }
protected RuntimeException runtimeException ( final Exception exception ) { if ( exception instanceof RuntimeException ) { throw ( RuntimeException ) exception ; } else { throw new RuntimeException ( exception ) ; } }
Wrap an Exception into a RuntimeException.

@param exception the original exception
@return the RuntimeException