code: private static ActionRegistry getRegistry(boolean global) {
          if (global) {
              return instance;
          }
          
          Page page = ExecutionContext.getPage();
          ActionRegistry registry = (ActionRegistry) page.getAttribute(ATTR_LOCAL_REGISTRY);
          
          if (registry == null) {
              page.setAttribute(ATTR_LOCAL_REGISTRY, registry = new ActionRegistry());
          }
          
          return registry;
      }
docs: Returns a reference to the registry for global or local actions.
  
  @param global If true, return the global registry; if false, the local registry.
  @return An action registry.