public static void executeAndMaybeSwallow(final boolean clean,
                                              final Runnable runnable,
                                              final java.util.function.Consumer<RuntimeException> actionIfClean,
                                              final java.util.function.Consumer<RuntimeException> actionIfNotClean) {
        try {
            runnable.run();
        } catch (final RuntimeException e) {
            if (clean) {
                actionIfClean.accept(e);
            } else {
                actionIfNotClean.accept(e);
            }
        }
    }
Produces a string representation containing useful information about the TaskManager.
This is useful in debugging scenarios.

@return A string representation of the TaskManager instance.
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java