* Perform the step's actual work.
*
* @throws Exception if a problem occurred
*/
public void doExecute() throws Exception {
final ResetScriptRunner runner; // delegate pattern
final Context context = getContext();
if (context.getRunner() == null) {
runner = new ResetScriptRunner();
runner.setLanguage(getLanguage());
context.setRunner(runner);
LOG.debug("Creating new Script Runner with language: " + fLanguage);
}
else {
runner = context.getRunner();
runner.reset();
}
buildScript();
getProject().addReference("step", this);
if (context.getCurrentResponse() == null) {
LOG.warn("No response found. Previous invoke missing? Related scripting variables not created");