class SwaggerBasePathRewritingFilter extends SendResponseFilter {

    @Override
    public Object run() {
        RequestContext context = RequestContext.getCurrentContext();

        if (!context.getResponseGZipped()) {
            context.getResponse().setCharacterEncoding("UTF-8");
        }

        String rewrittenResponse = rewriteBasePath(context);
        context.setResponseBody(rewrittenResponse);
        return null;
    }

    public  SwaggerBasePathRewritingFilter();

}