public static <T, E extends Exception> Consumer<T> rethrowConsumer(ConsumerWithExceptions<T, E> consumer)
            throws E {
        return t -> {
            try {
                consumer.accept(t);
            } catch (Exception exception) {
                throwAsUnchecked(exception);
            }
        };
    }
e.g:
.forEach(rethrowConsumer(name -> System.out.println(Class.forName(name))));
or
.forEach(rethrowConsumer(ClassNameUtil::println));
stroom-util/src/main/java/stroom/util/exception/LambdaExceptionUtil.java