Reuse some code between Camel tracer and debugger