Custom code for tracing pipeline in java

I have a custom exception handler and I would like to be able to trace a pipeline I get from pub.event:exception. Does anyone have some java code for doing this or should I be rolling out my own? I do not want to use wm pub.flow.tracePipeline because it logs the pipeline into server.log and I do not know of anyway to change the output stream to something else.

Check out the Walk IData example in the WmSamples package.