* @author Christoph Deppisch
*/
public class HelloServiceImpl extends AbstractMarshallingHelloService {
public Message<HelloResponse> sayHello(Message<HelloRequest> request) {
HelloResponse response = new HelloResponse();
response.setMessageId(request.getPayload().getMessageId());
response.setCorrelationId(request.getPayload().getCorrelationId());
response.setUser("HelloService");
response.setText("Hello " + request.getPayload().getUser());
MessageBuilder<HelloResponse> builder = MessageBuilder.withPayload(response);
builder.setHeader("CorrelationId", request.getHeaders().get("CorrelationId"));
builder.setHeader("Operation", "sayHello");
builder.setHeader("Type", "response");