docs: public synchronized static void initGlobal(ContextFactory factory)
      {
          if (factory == null) {
              throw new IllegalArgumentException();
          }
          if (hasCustomGlobal) {
              throw new IllegalStateException();
          }
          hasCustomGlobal = true;
          global = factory;
      }