/**
* Generates an InsertStm.
*/
private void putInsert(InsertStm.Kind kind, Value base, Value xpath, ValueBox source, boolean convertObjects) {
Statement stm;
cfg.addStatement(stm = new InsertStm(kind, hardcodeResult = makevar(), translateExpr(base),
xpath!=null ? context.getConstantString(xpath) : null,
convertObjects ? null : Automaton.makeEmpty(),
convertObjects ? getVariableFromObjectExp(source) : translateExpr(source.getValue()),
context.getCurrentOrigin()));
if (convertObjects) {