final String request = (String)message.getBody().get() ;
if (request.contains("Error")) {
final String detail = "<say:sayFault xmlns:say=\"http://www.jboss.org/sayHi\"><say:code>" +
"myErrorCode" + "</say:code><say:faultString>" + "myDescription" +
"</say:faultString></say:sayFault>" ;
throw new ActionProcessingDetailFaultException(new QName("http://www.jboss.org/sayHi", "myErrorCode"), "myDescription", detail) ;
}
System.out.println("Received request: " + request) ;
final String responseMsg = "<say:sayHiResponse xmlns:say=\"http://www.jboss.org/sayHi\"><say:arg0>" +
"Response from ESB Service" + "</say:arg0></say:sayHiResponse>" ;