docs: public static Map<String, Object> cloneDelegateAndGetContent(Closure<?> c) {
          JsonDelegate delegate = new JsonDelegate();
          Closure<?> cloned = (Closure<?>) c.clone();
          cloned.setDelegate(delegate);
          cloned.setResolveStrategy(Closure.DELEGATE_FIRST);
          cloned.call();
  
          return delegate.getContent();
      }