this.pm = pm;
}
public void process(Exchange exchange) throws Exception {
String methodName="process";
if ( pm.getLogLevel().toLowerCase().equals("trace")) {
XStreamDataFormat xStreamDataFormat = new XStreamDataFormat();
XStream xStream = xStreamDataFormat.getXStream(new DefaultClassResolver());
String marshalledEvent = xStream.toXML(exchange.getIn().getBody());
pm.logAtTraceLevel(methodName, marshalledEvent);
}
// if ( logger.isDebug() ) {
// XStreamDataFormat xStreamDataFormat = new XStreamDataFormat();