public static RuntimeException rewrapAndThrowUncheckedException(Throwable ex){
  throw rewrapAndThrowUncheckedException(ex.getMessage(),ex);
}

public static RuntimeException rewrapAndThrowUncheckedException ( Throwable ex ) { throw rewrapAndThrowUncheckedException ( ex . getMessage ( ) , ex ) ; }
if throwable is a runtimeexception or error , rewrap and throw it . if not , throw a new palantirruntimeexception ( ex )
