addBeforeCallback(handler: (value: { [index: string]: any }) => void) {
    this.beforeCallbacks.push(handler);
  }