if (!StringUtils.hasText(variableName) || VariableUtils.cutOffVariablesPrefix(variableName).length() == 0) {
throw new CitrusRuntimeException("Can not create variable '"+ variableName + "', please define proper variable name");
}
if (value == null) {
throw new VariableNullValueException("Trying to set variable: " + VariableUtils.cutOffVariablesPrefix(variableName) + ", but variable value is null");
}
if (log.isDebugEnabled()) {
log.debug("Setting variable: " + VariableUtils.cutOffVariablesPrefix(variableName) + " with value: '" + value + "'");
}