/**
* Generates a SetStm.
*/
private void putSet(SetStm.Kind kind, Value base, Value xpath, ValueBox source) {
cfg.addStatement(addStringStatement(new SetStm(kind, hardcodeResult = makevar(), translateExpr(base),
xpath!=null ? context.getConstantString(xpath) : null,
null,
getVariableFromObjectExp(source), context.getCurrentOrigin()), source));
checkDiscardedResult();
}