docs: public void setClosure(String key, Closure closure) {
          if (closures == null) {
              closures = CollectionUtil.createHashMap(Const.INITIAL_CAPACITY);
          }
          closures.put(key, closure);
      }