}
@Override
public void recalculate(LoadTestRunner loadTestRunner, LoadTestRunContext context) {
// calculate thread count
WsdlLoadTestRunner runner = (WsdlLoadTestRunner) loadTestRunner;
float progress = runner.getProgress();
if ((int) progress != -1) {
WsdlLoadTest wsdlLoadTest = ((WsdlLoadTest) loadTestRunner.getLoadTest());
synchronized (wsdlLoadTest) {
int newThreadCount = (int) (startThreadCount + (progress * (endThreadCount - startThreadCount) + 0.5));
if (newThreadCount != wsdlLoadTest.getThreadCount() && newThreadCount <= endThreadCount) {