@Override
  public void configure(TestElement el) {
    super.configure(el);
    useGroupName.setSelected(el.getPropertyAsBoolean(USE_GROUP_NAME, false));
    saveHeaders.setSelected(el.getPropertyAsBoolean(SAVE_HEADERS, true));

    jPanelFilter.setIncludeSampleLabels(
        el.getPropertyAsString(CorrectedResultCollector.INCLUDE_SAMPLE_LABELS));
    jPanelFilter.setExcludeSampleLabels(
        el.getPropertyAsString(CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS));

    if (!CorrectedResultCollector.EMPTY_FIELD.equals(
        el.getPropertyAsString(CorrectedResultCollector.START_OFFSET))) {
      jPanelFilter.setStartOffset((el.getPropertyAsLong(CorrectedResultCollector.START_OFFSET)));
    }
    if (!CorrectedResultCollector.EMPTY_FIELD.equals(
        el.getPropertyAsString(CorrectedResultCollector.END_OFFSET))) {
      jPanelFilter.setEndOffset((el.getPropertyAsLong(CorrectedResultCollector.END_OFFSET)));
    }

    jPanelFilter.setSelectedRegExpInc(
        el.getPropertyAsBoolean(CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE));
    jPanelFilter.setSelectedRegExpExc(
        el.getPropertyAsBoolean(CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE));

    if (el instanceof CorrectedResultCollector) {
      setUpFiltering((CorrectedResultCollector) el);
    }
  }
  @Override
  public void modifyTestElement(TestElement c) {
    super.modifyTestElement(c);
    c.setProperty(USE_GROUP_NAME, useGroupName.isSelected(), false);
    c.setProperty(SAVE_HEADERS, saveHeaders.isSelected(), true);
    c.setProperty(
        new StringProperty(
            CorrectedResultCollector.INCLUDE_SAMPLE_LABELS, jPanelFilter.getIncludeSampleLabels()));
    c.setProperty(
        new StringProperty(
            CorrectedResultCollector.EXCLUDE_SAMPLE_LABELS, jPanelFilter.getExcludeSampleLabels()));

    c.setProperty(
        new StringProperty(CorrectedResultCollector.START_OFFSET, jPanelFilter.getStartOffset()));
    c.setProperty(
        new StringProperty(CorrectedResultCollector.END_OFFSET, jPanelFilter.getEndOffset()));

    c.setProperty(
        new BooleanProperty(
            CorrectedResultCollector.INCLUDE_REGEX_CHECKBOX_STATE,
            jPanelFilter.isSelectedRegExpInc()));
    c.setProperty(
        new BooleanProperty(
            CorrectedResultCollector.EXCLUDE_REGEX_CHECKBOX_STATE,
            jPanelFilter.isSelectedRegExpExc()));
  }
 @Override
 public void clearGui() {
   super.clearGui();
   jPanelFilter.clearGui();
 }