docs: public static <T> T withProcessApplicationContext(Callable<T> callable, ProcessApplicationReference reference) throws Exception {
      try {
        setCurrentProcessApplication(reference);
        return callable.call();
      }
      finally {
        clear();
      }
    }