public static <K extends Throwable>void rewrapAndThrowIfInstance(Throwable t,Class<K> clazz) throws K {
  rewrapAndThrowIfInstance(t == null ? "null" : t.getMessage(),t,clazz);
}

public static < K extends Throwable > void rewrapAndThrowIfInstance ( Throwable t , Class < K > clazz ) throws K { rewrapAndThrowIfInstance ( t == null ? "null" : t . getMessage ( ) , t , clazz ) ; }
if ( t instanceof k ) throw throwables . rewrap ( ( k ) t ) ; < p > note : the runtime type of the thrown exception will be the same as t even if clazz is a supertype of t .
