code: function addResources (statebox, options) {
    options.messages.info('Adding resources...')
    const stateResources = options.pluginComponents.stateResources
    if (!_.isObject(stateResources)) {
      return
    }
  
    const resourceClasses = {}
    for (const [name, resource] of Object.entries(stateResources)) {
      options.messages.detail(`Adding ${name}`)
      resourceClasses[name] = resource.componentModule
    } // for ...
  
    statebox.createModuleResources(resourceClasses)
  
    statebox.registerResourceResolver('function', functionResolver)
  }
docs: class StateboxService