direction = "send";
}
if(direction.toLowerCase().equals("send")){
Map<String, String> mp = getMessageProperties(ctx.getParameter("header.properties"));
postProcessor.setMessageProperties(mp);
sender.convertAndSend((Object)message, postProcessor);
result.setSuccessful(true);
result.setResponseMessage("Message sent.");
}else{
if(direction.toLowerCase().equals("receive")){