@@ -0,0 +1,955 @@
+/**%0A * %0A */%0Apackage com.boundary.sdk;%0A%0Aimport java.util.Map;%0A%0Aimport org.apache.camel.CamelContext;%0Aimport org.apache.camel.Exchange;%0Aimport org.apache.camel.Message;%0Aimport org.apache.camel.Processor;%0Aimport org.apache.camel.component.syslog.SyslogMessage;%0A%0Aimport com.boundary.sdk.Event;%0A%0A%0A/**%0A * @author davidg%0A * %0A */%0Apublic class DebugProcessor implements Processor %7B%0A%0A%09private boolean debug = false;%0A%09/**%0A%09 * %0A%09 */%0A%09%0A%09public DebugProcessor() %7B%0A%09%09this(false);%0A%09%7D%0A%09public DebugProcessor(boolean debug) %7B%0A%09%09// TODO Auto-generated constructor stub%0A%09%7D%0A%09%0A%09@Override%0A%09public void process(Exchange exchange) throws Exception %7B%0A        System.out.println(%22Received message body: %22 + exchange.getIn().getBody(String.class));%0A        Message m = exchange.getIn();%0A        Object o = m.getBody();%0A        System.out.println(%22Class: %22 + o.getClass());%0A        Map %3CString,Object%3E headers = m.getHeaders();%0A        System.out.println(%22headers: %22 + headers);%0A%09%7D%0A%7D%0A

Add processor for debugging messages