code: public static void setGlobalScope (@Nonnull final IGlobalScope aGlobalScope)
    {
      ValueEnforcer.notNull (aGlobalScope, "GlobalScope");
  
      s_aGlobalLock.locked ( () -> {
        if (s_aGlobalScope != null)
          throw new IllegalStateException ("Another global scope with ID '" +
                                           s_aGlobalScope.getID () +
                                           "' is already present. New global scope with ID '" +
                                           aGlobalScope.getID () +
                                           "' is not set!");
  
        s_aGlobalScope = aGlobalScope;
  
        aGlobalScope.initScope ();
        if (ScopeHelper.debugGlobalScopeLifeCycle (LOGGER))
          LOGGER.info ("Global scope '" + aGlobalScope.getID () + "' initialized!", ScopeHelper.getDebugStackTrace ());
  
        // Invoke SPIs
        ScopeSPIManager.getInstance ().onGlobalScopeBegin (aGlobalScope);
      });
    }
docs: This method is only to be called by this class and the web scope manager!
  
  @param aGlobalScope
  The scope to be set. May not be <code>null</code>.