if (isTraceEnabled()) {
// only add a new tracer if not already configured
if (Tracer.getTracer(this) == null) {
Tracer tracer = new Tracer();
// lets see if we have a formatter if so use it
TraceFormatter formatter = this.getRegistry().lookup("traceFormatter", TraceFormatter.class);
if (formatter != null) {
tracer.setFormatter(formatter);
}
LOG.debug("Tracing is enabled");
addInterceptStrategy(tracer);