public class TraceFlowProcessor extends LinePartProcessor {
@Override
public void emitLinePart(Context context) {
ModelFactory f = Models.getModelFactory();
Expression driver = context.createField(
TraceDriver.class, "trace",
new TypeBuilder(f, context.convert(TraceDriver.class))
.method("get", createTraceContext(context))
.toExpression());
Expression input = context.getInput();
context.add(new ExpressionBuilder(f, driver).method("trace", input).toStatement());
context.setOutput(input);
}