for (int idx = 0; idx < loop; idx++) {
String tmsg = this.getMessageContent();
this.PUB.publish(tmsg);
this.BUFFER.append(tmsg);
}
result.sampleEnd();
String content = this.BUFFER.toString();
result.setBytes(content.getBytes().length);
result.setResponseCode("message published successfully");
result.setResponseMessage(loop + " messages published");
result.setSuccessful(true);