class HttpResponseSender implements IResponseSender {

    @Override
    public void send(final IResponse responseObject, final IObject environment,
                     final IChannelHandler ctx) throws ResponseSendingException {
        FullHttpResponse response = new DefaultFullHttpResponse(
                HttpVersion.HTTP_1_1, getResponseStatus(environment),
                Unpooled.wrappedBuffer(responseObject.getContent()));
        try {
            headersSetter.set(response, environment);
        } catch (HeadersSetterException e) {
            throw new ResponseSendingException("Failed to set headers to response", e);
        }
        try {
            cookiesSetter.set(response, environment);
        } catch (CookieSettingException e) {
            throw new ResponseSendingException("Failed to set cookies to response", e);
        }
        ctx.send(response);
    }

    public  HttpResponseSender(final String name);

}