@Override
  public void modifyTestElement(TestElement te) {
    StockParam sampler = (StockParam) te;
    sampler.clear();
    configureTestElement(sampler);

    super.modifyTestElement(sampler);

    sampler.setHeaders((Arguments) headers.createTestElement());
  }
  @Override
  public void modifyTestElement(TestElement te) {
    TradingIdea sampler = (TradingIdea) te;
    sampler.clear();
    configureTestElement(sampler);

    super.modifyTestElement(sampler);

    sampler.setHeaders((Arguments) headers.createTestElement());
  }
 /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
 @Override
 public void modifyTestElement(TestElement plan) {
   super.configureTestElement(plan);
   if (plan instanceof ReportPlan) {
     ReportPlan rp = (ReportPlan) plan;
     rp.setUserDefinedVariables((Arguments) argsPanel.createTestElement());
     rp.setProperty(ReportPlan.REPORT_COMMENTS, commentPanel.getText());
     rp.setBasedir(baseDir.getFilename());
   }
 }
 /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
 @Override
 public void modifyTestElement(TestElement plan) {
   super.configureTestElement(plan);
   if (plan instanceof TestPlan) {
     TestPlan tp = (TestPlan) plan;
     tp.setFunctionalMode(functionalMode.isSelected());
     tp.setTearDownOnShutdown(tearDownOnShutdown.isSelected());
     tp.setSerialized(serializedMode.isSelected());
     tp.setUserDefinedVariables((Arguments) argsPanel.createTestElement());
     tp.setTestPlanClasspathArray(browseJar.getFiles());
   }
 }