code: public static void invokeProxied(final ProxiedAction action, final ClassLoader classLoader) throws Exception {
          ProxiedAction proxy = (ProxiedAction) Proxy.newProxyInstance(classLoader, new Class<?>[] { ProxiedAction.class }, new InvocationHandler() {
              @Override
              public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
                  action.run();
                  return Optional.empty();
              }
          });
          proxy.run();
      }
docs: Runs a {@link ProxiedAction} within a {@link Proxy} instance. See the following issues for information
  around its primary use case.
  
  https://issues.jboss.org/browse/ENTESB-7117
  https://github.com/wildfly-extras/wildfly-camel/issues/1919
  
  @param action A ProxiedAction instance to invoke within a {@link Proxy} instance
  @param classLoader The ClassLoader used to create the {@link Proxy} instance
  @throws Exception