class ConsentController extends AbstractController implements ConsentApi, AccountApi {

    @Override
    public ResponseEntity<ConsentInformationResponse200Json> getConsentInformation(String consentId,
                                                                                   Map<String, String> parameters,
                                                                                   Map<String, String> headers) {
        RequestParams requestParams = RequestParams.fromMap(parameters);
        RequestHeaders requestHeaders = RequestHeaders.fromMap(headers);

        Response<ConsentInformationResponse200Json> response =
            accountInformationService.getConsentInformation(consentId, requestHeaders, requestParams);

        return ResponseEntity
                       .status(HttpStatus.OK)
                       .headers(headersMapper.toHttpHeaders(response.getHeaders()))
                       .body(response.getBody());
    }

    public  ConsentController(AccountInformationService accountInformationService, ObjectMapper objectMapper, HeadersMapper headersMapper);

}