result = srcExpr.execute(context);
toExpr.setValue(context, out.toArray());
} else {
CharArrayWriter writer = new CharArrayWriter(256);
context.out = current instanceof WriterOut
? new WriterOut(writer, (WriterOut) current)
: new WriterOut(writer, context.encoding, context.template.engine.getCoderFactory());
result = srcExpr.execute(context);
toExpr.setValue(context, writer.toArray());
}
context.out = current;
return result;