Serializer serializer = serializationFactory.getSerializer(content);
serializationStrategy.serialize(data, serializer);
serializer.flush();
response.setHeader(HttpHeaders.Names.CONTENT_TYPE, serializer.getContentType().toString());
response.setHeader(HttpHeaders.Names.CONTENT_LENGTH, content.writerIndex());
response.setContent(content);
}
ChannelFuture future = channel.write(response);