/**
  * Modifies a given TestElement to mirror the data in the gui components.
  *
  * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
  */
 @Override
 public void modifyTestElement(TestElement s) {
   SubscriberSampler sampler = (SubscriberSampler) s;
   this.configureTestElement(sampler);
   sampler.setProviderUrl(urlField.getText());
   sampler.setDestination(mqttDestination.getText());
   sampler.setClientID(clientId.getText());
   sampler.setUsername(mqttUser.getText());
   sampler.setPassword(mqttPwd.getText());
   sampler.setUseAuth(useAuth.isSelected());
   sampler.setSamplerTimeout(samplerTimeout.getText());
   sampler.setConnectionTimeout(connectionTimeout.getText());
   sampler.setIterations(iterations.getText());
   // we might need this in future - for now it's causing problems
   // sampler.setRandomSuffix(this.suffixClientId.isSelected());
   sampler.setRandomSuffix(false);
   sampler.setLength(this.suffixLength.getText());
   // sampler.setOneConnectionPerTopic(this.connectionPerTopic.isSelected());
   // sampler.setSTRATEGY(this.topicChoice.getText());
   // sampler.setQuality(typeQoSValue.getText());
   sampler.setCLEANSESSION(cleanSession.isSelected());
 }