class HeadersMapper {

    public HttpHeaders toHttpHeaders(ResponseHeaders responseHeaders) {
        HttpHeaders httpHeaders = new HttpHeaders();
        responseHeaders.getHeadersMap().forEach(httpHeaders::add);
        return httpHeaders;
    }

}