if (Utils.isBlankOrNull(waitTime)) {
waitTime = "-1";
}
props.setProperty("waitConditionTime", "" + waitTime);
props.setProperty("stabilityIndex", "" + Configuration.getStabilityIndex());
ScriptRunner scriptRunner = session.getScriptRunner();
if (scriptRunner != null && scriptRunner.getScript() != null){
props.setProperty("scriptPath", Utils.escapeDoubleQuotesAndBackSlashes(Utils.escapeDoubleQuotesAndBackSlashes(scriptRunner.getScript().getFilePath())));
props.setProperty("scriptName", scriptRunner.getScriptName());
}else{
props.setProperty("scriptPath", "");
props.setProperty("scriptName", "");
}