code: function() {
        var behaviorContext = Behavior.prototype.prepare.apply(this) || {};
        behaviorContext.data = this.data.toJSON();
        behaviorContext.loading = this.isLoading();
        behaviorContext.loadingIds = this.isLoadingIds();
        behaviorContext.loadingObjects = this.isLoadingObjects();
        return behaviorContext;
      }
docs: Adds the toJSON of the data represented by this behavior to the context.
  @method prepare
  @override