final Out current = context.out;
if (current.isByteStream()) {
ByteArrayOutputStream out = new ByteArrayOutputStream(256);
context.out = new OutputStreamOut(out, (OutputStreamOut) current);
srcStatement.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());