Maybe you could even use MessageToMessageEncoder