class RootDumper {
    private DumperFactory dumperFactory;
    private DumpConfig dumpConfig;
    private HttpServerExchange exchange;

    public RootDumper(DumpConfig dumpConfig, HttpServerExchange exchange) {
        this.dumpConfig = dumpConfig;
        this.exchange = exchange;
        dumperFactory = new DumperFactory();
    }

    /**
     * create dumpers that can dump http request info, and put http request info into Map<String, Object> result
     * @param result a Map<String, Object> to put http request info to
     */
    public void dumpRequest(Map<String, Object> result) {
        if(!dumpConfig.isRequestEnabled()) { return; }

        Map<String, Object> requestResult = new LinkedHashMap<>();
        for(IRequestDumpable dumper: dumperFactory.createRequestDumpers(dumpConfig, exchange)) {
            if(dumper.isApplicableForRequest()){
                dumper.dumpRequest(requestResult);
            }
        }
        result.put(DumpConstants.REQUEST, requestResult);
    }

    /**
     * create dumpers that can dump http response info, and put http response info into Map<String, Object> result
     * @param result a Map<String, Object> to put http response info to
     */
    public void dumpResponse(Map<String, Object> result) {<FILL_FUNCTION_BODY>}
}

        if(!dumpConfig.isResponseEnabled()) { return; }

        Map<String, Object> responseResult = new LinkedHashMap<>();
        for(IResponseDumpable dumper: dumperFactory.createResponseDumpers(dumpConfig, exchange)) {
            if (dumper.isApplicableForResponse()) {
                dumper.dumpResponse(responseResult);
            }
        }
        result.put(DumpConstants.RESPONSE, responseResult);
    
<no_super_class>