onGetRoot: function() { // Create global actors if (!this._globalActorPool) { this._globalActorPool = new LazyPool(this.conn); } const actors = createExtraActors( this._parameters.globalActorFactories, this._globalActorPool, this ); return actors; },
form: function() { const response = { actor: this.actorID, title: this._global.__name }; // Walk over target-scoped actors and add them to a new LazyPool. const actorPool = new LazyPool(this.conn); const actors = createExtraActors( ActorRegistry.targetScopedActorFactories, actorPool, this ); if (!actorPool.isEmpty()) { this._targetActorPool = actorPool; } return { ...response, ...actors }; },