* does not need to be exempted.
*/
private void writeVariable(JavaExpression result, JavaExpression escapingExpression) {
if (escapingExpression instanceof BooleanLiteralExpression) {
BooleanLiteralExpression expr = (BooleanLiteralExpression) escapingExpression;
if (expr.getValue()) {
java.writeStatement(callOn(CONTEXT, "writeUnescaped", result.cast(Type.STRING)));
} else {
java.writeStatement(callOn(CONTEXT, "writeEscaped", result.cast(Type.STRING)));
}