}
public SampleResult sample(Entry e) {
SampleResult parent = new SampleResult();
boolean isOK = false; // Did sample succeed?
boolean deleteMessages = getDeleteMessages();
<BUG>parent.setSampleLabel(getName());
int port=getPortAsInt();
if (port > 0){
parent.setSamplerData(getServerType() + "://" + getUserName() + "@" + getServer()+ ":" + port);
} else {
parent.setSamplerData(getServerType() + "://" + getUserName() + "@" + getServer());
}</BUG>
parent.sampleStart(); // Start timing

}
public SampleResult sample(Entry e) {
SampleResult parent = new SampleResult();
boolean isOK = false; // Did sample succeed?
boolean deleteMessages = getDeleteMessages();
parent.setSampleLabel(getName());
String samplerString = toString();
parent.setSamplerData(samplerString);
parent.sampleStart(); // Start timing
