@@ -0,0 +1,990 @@
+package org.fakekoji.jobmanager;%0A%0Aimport java.util.function.BiConsumer;%0Aimport java.util.function.Consumer;%0A%0Apublic class ManagementUtils %7B%0A%0A    public static %3CT, U%3E BiConsumer%3CT, U%3E managementBiConsumerWrapper(ManagementBiConsumer%3CT, U%3E consumer) %7B%0A        return (key, value) -%3E %7B%0A            try %7B%0A                consumer.accept(key, value);%0A            %7D catch (ManagementException e) %7B%0A                throw new RuntimeException(e);%0A            %7D%0A        %7D;%0A    %7D%0A%0A    public static %3CT%3E Consumer%3CT%3E managementConsumerWrapper(ManagementConsumer%3CT%3E consumer) %7B%0A        return i -%3E %7B%0A            try %7B%0A                consumer.accept(i);%0A            %7D catch (ManagementException e) %7B%0A                throw new RuntimeException(e);%0A            %7D%0A        %7D;%0A    %7D%0A%0A    public interface ManagementBiConsumer%3CT, U%3E %7B%0A%0A        void accept(T t, U u) throws ManagementException;%0A    %7D%0A%0A    public interface ManagementConsumer%3CT%3E %7B%0A%0A        void accept(T t) throws ManagementException;%0A    %7D%0A%0A%7D%0A

Create ManagementUtils that provide consumer wrappers so that lambdas can throw Management Exception