code: function (when, methodName, record) {
              var callbacks = registry[when][methodName]
              for (var i = 0, l = callbacks.length; i < l; i++) {
                  callbacks[i].call(this, record)
              }
          }
docs: TODO definitely make private method for invoking callbacks