code: public void addSubFileFilter()
      {
          this.getMainRecord().addListener(new SubFileFilter(ProjectTaskPredecessor.PROJECT_TASK_ID_KEY, this.getHeaderRecord().getField(ProjectTask.ID)));
      }
docs: AddSubFileFilter Method.