code: public static boolean isSpaEnabled() {
          Configuration config = ConfigUtils.getCurrentConfig();
          if (config != null) {
              return config.getBoolean(SPA_ENABLED_CONFIG_KEY, false);
          } else {
              return false;
          }
      }
docs: Returns true if SPA (Single Page App) mode is enabled.