An Exception Adapter useful in order to LetExceptionsPropagateOnlyAsUncheckedExceptions
/**
public class ExceptionAdapter {
public static RuntimeException toRuntimeException(Exception e) {
if(RuntimeException.class.isInstance(e)) return (RuntimeException) e;
else return new RuntimeException(e);
}
}
-- AndreParrie